This is sort of a follow on from my last question. I am using beginAnimations:context:
to setup an animation block to animate some UITextLabels. However I notic
Xcode 7 added the available
syntax making this relatively more simple:
Swift:
if #available(iOS 9, *) {
// iOS 9 only code
}
else {
// Fallback on earlier versions
}
Xcode 9 also added this syntax to Objective-C
Objective-C:
if (@available(iOS 9.0, *)) {
// iOS 9 only code
} else {
// Fallback on earlier versions
}