updated url
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
831f4baf18
commit
d33f672350
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
//https://gist.github.com/jegnux/4a9871220ef93016d92194ecf7ae8919#file-proxypropertywrapper-swift
|
//https://www.swiftbysundell.com/articles/accessing-a-swift-property-wrappers-enclosing-instance/
|
||||||
@propertyWrapper
|
@propertyWrapper
|
||||||
public struct AnyProxy<EnclosingSelf, Value> {
|
public struct AnyProxy<EnclosingSelf, Value> {
|
||||||
private let keyPath: ReferenceWritableKeyPath<EnclosingSelf, Value>
|
private let keyPath: ReferenceWritableKeyPath<EnclosingSelf, Value>
|
||||||
@ -39,8 +39,6 @@ public struct AnyProxy<EnclosingSelf, Value> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Kudos @johnsundell for this trick
|
|
||||||
// https://swiftbysundell.com/articles/accessing-a-swift-property-wrappers-enclosing-instance/
|
|
||||||
extension NSObject: ProxyContainer {}
|
extension NSObject: ProxyContainer {}
|
||||||
public protocol ProxyContainer {
|
public protocol ProxyContainer {
|
||||||
typealias Proxy<T> = AnyProxy<Self, T>
|
typealias Proxy<T> = AnyProxy<Self, T>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user