Avatar
omochimetaru 6/30/2021 2:36 AM
@propertyWrapper struct Clamped<Value: Comparable> { @shared let storage: RangeStorage<Value> var wrappedValue: Value { ... } // a plain struct, with properties that will be shared across wrappers struct RangeStorage<Value: Comparable> { ... } }
2:36 AM
@shared っていうのが提案されてる