Skip to content

Instantly share code, notes, and snippets.

View dmhts's full-sized avatar
🇺🇦
https://stand-with-ukraine.pp.ua/

Dima Hutsuliak dmhts

🇺🇦
https://stand-with-ukraine.pp.ua/
View GitHub Profile
@propertyWrapper
public struct AnyProxy<EnclosingSelf, Value> {
private let keyPath: ReferenceWritableKeyPath<EnclosingSelf, Value>
public init(_ keyPath: ReferenceWritableKeyPath<EnclosingSelf, Value>) {
self.keyPath = keyPath
}
@available(*, unavailable, message: "The wrapped value must be accessed from the enclosing instance property.")
public var wrappedValue: Value {