Skip to content

Instantly share code, notes, and snippets.

@serhiybutz
Created September 24, 2021 07:10
Show Gist options
  • Save serhiybutz/0aa9a95f3911ef3aa0022ad671f5914a to your computer and use it in GitHub Desktop.
Save serhiybutz/0aa9a95f3911ef3aa0022ad671f5914a to your computer and use it in GitHub Desktop.
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