Created
August 3, 2021 04:07
-
-
Save BigZaphod/165210240dd4ca7a65ae9146f1c09030 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@propertyWrapper | |
struct Wrapper<T> { | |
var actualValue: T! | |
var wrappedValue: T { | |
get { | |
actualValue | |
} | |
set { | |
actualValue = newValue | |
} | |
} | |
} | |
struct Thingy { | |
@Wrapper var whatever: String | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment