Created
February 4, 2023 19:25
-
-
Save davbeck/1a3ee5340823ba673c0c2c05a8db2645 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
import Foundation | |
struct Weak<Value: AnyObject> { | |
weak var value: Value? | |
init(_ value: Value) { | |
self.value = value | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment