Created
September 24, 2021 07:10
-
-
Save serhiybutz/0aa9a95f3911ef3aa0022ad671f5914a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct Accessor<T> { | |
private let prop: Property<T> | |
internal init(_ p: Property<T>) { | |
self.prop = p | |
} | |
public var value: T { | |
get { prop.value } | |
set { prop.value = newValue } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment