Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 1.47 KB

File metadata and controls

68 lines (45 loc) · 1.47 KB

|wand created to support all platfroms
Prototype implemented on Swift

Swift Package

📦 |Location

⚙️ Usage

//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 

}

💡 Idea

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
}

🪄 Сoncept

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 |

Alex Kozin
El Machine 🤖