I hereby claim:
- I am rydermackay on github.
- I am ryder (https://keybase.io/ryder) on keybase.
- I have a public key whose fingerprint is 7465 F04C 22DB 6BD9 88A8 DC87 C1A1 0B26 7866 5CE2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import Foundation | |
| struct Box<Value> { | |
| let value: Value | |
| } | |
| extension Box { | |
| // 1. | |
| func map<T>(_ f: @escaping (Value) -> T) -> Box<T> { | |
| return Box<T>(value: f(value)) |
| import UIKit | |
| struct InvalidationOptions: OptionSet { | |
| static let constraints = InvalidationOptions(rawValue: 1) | |
| static let layout = InvalidationOptions(rawValue: 1 << 1) | |
| static let display = InvalidationOptions(rawValue: 1 << 2) | |
| let rawValue: Int8 | |
| } | |
| @propertyWrapper |