-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added availability check to use it with iOS7 #51
Conversation
Fix to use the textField in iOS7 (downloading and adding the source code to the project)
You can remove the |
super.prepareForInterfaceBuilder() | ||
if #available(iOS 8.0, *) { | ||
super.prepareForInterfaceBuilder() | ||
} else {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on what @RuiAAPeres said. Could you remove this empty else {}
please, and it will be good to go 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! Hell, how I missed that xD
Perfect, thanks for the improvement @acecilia 👍 ! |
Can we get some context of why we needed this, can we link an issue? The preferred way to check API availability is |
@intonarumori that article is from 2013. From Apple's blog:
|
@RuiAAPeres Thanks for the link, seems less articulate to me but you are right this is the way forward. Shouldn't we just use it for the whole method then?
|
Fix to use the textField in iOS7 (by downloading and adding the source
code to the project)