Featured
Deprecated Openshift v2.0 has now reached End of Life [https://blog.openshift.com/migrate-to-v3-v2-eol/] and will be replaced by v3.0. -------------------------------------------------------------------------------- I primarily use Openshift for...
I sometimes need to dynamically load a .wav file. Here's how I do it using AVFoundation. func changeSound(_ song:(path: String, format: String)){ var err:NSError?...
This function will help you get a random true or false boolean value. func randomBool() -> Bool { return arc4random_uniform(2) == 0 ? true : false }...