I am wondering if there is any reason why there is no shared instance, like UIDevice could have one named current
Could I PR this? (or you can add it)
extension Device {
/// Return the current device instance.
public static let current = Device()
}
ps: static variable seems to be lazy loaded.
I am wondering if there is any reason why there is no shared instance, like
UIDevicecould have one namedcurrentCould I PR this? (or you can add it)
ps:
staticvariable seems to be lazy loaded.