All Posts in Swift

February 19, 2016 - No Comments!

Intro to tvOS for Apple TV

With the recent launch of the updated Apple TV it was about time to sit down and take a look. The launch of Apple TV and it's tvOS SDK (similar to iOS) will allow developers to build out their tvOS app using Javascript, TVML and Swift, and also add their apps to the Apple TV's own app store.

Read more

November 13, 2015 - No Comments!

Swift Text Transition Trick

A little trick I learnt today to change the text of a label with a crossfade...

let animation = CATransition()
animation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseOut)
animation.type = kCATransitionFade
animation.duration = 0.5
self.label.layer.addAnimation(animation, forKey: "kCATransitionFade")
self.label.text = "new copy"