Skip to content
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

Merged
merged 2 commits into from
May 27, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Sources/SkyFloatingLabelTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,9 @@ public class SkyFloatingLabelTextField: UITextField {

/// Invoked when the interface builder renders the control
override public func prepareForInterfaceBuilder() {
super.prepareForInterfaceBuilder()
if #available(iOS 8.0, *) {
super.prepareForInterfaceBuilder()
} else {}
Copy link
Contributor

@gergelyorosz gergelyorosz May 27, 2016

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 👍

Copy link
Contributor Author

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

self.selected = true
_renderingInInterfaceBuilder = true
self.updateControl(false)
Expand Down