Skip to content

Instantly share code, notes, and snippets.

View BoogieMonster1O1's full-sized avatar
🎯
Focusing

Shrish Deshpande BoogieMonster1O1

🎯
Focusing
View GitHub Profile
gist
@propertyWrapper
struct Lateinit<T> {
private var _value: T?
var wrappedValue: T {
get {
guard let value = _value else {
fatalError("Property being accessed without initialization")
}
return value