|wand created to support all platfroms
Prototype implemented on Swift
//Request .authorizedWhenInUse permissions
CLAuthorizationStatus.authorizedWhenInUse | { (status: CLAuthorizationStatus) in
}
//Request location updates
//Uses .startUpdatingLocation()
|{ (location: CLLocation) in
}
//Request .authorizedAlways permissions and only one location object
//Uses .requestLocation()
CLAuthorizationStatus.authorizedAlways | { (status: CLAuthorizationStatus) in
} | .one { (location: CLLocation) in
}Imagine that you have the black box that can give you an Any object.
You don't know what's already in the box and what happens inside.
Ask for object that you need with |
|{ (result: Object) in
}ingredients | { (result: Object) in
}ingredients | .one { (t: T) in
} | .every { (u: U) in
} | .while { (v: V) in
true
}Wand started from the idea about receiving anything in most efficient way.
Add one sign to anything and retreive the result 📦
You ideas, comments and contributions are welcome |