|wand created to support all platfroms
Prototype implemented on Swift
//Wait for a Notification
UIApplication.didBecomeActiveNotification | { (n: Notification) in
}//Resize to (42, 42) aspect fill
image | .fill(to: 42|) { (out: UIImage) in
}//Resize to (42, 42) aspect fit
image | .fit(to: 42|) { (out: UIImage) in
}//Rescale to (42, 42)
image | .scale(to: 42|) { (scaled: UIImage) in
}//Add rounded corners
image | .round(to: 42) { (scaled: UIImage) 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 📦
There is no magic 💂
The Wand may collect usage data
You must attribute the author
Aleksandr Kozin
Apps since 2008