Skip to content

The-Wand/Location

Repository files navigation

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

About

CoreLocation Factory unit

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors

Languages