Created
October 5, 2014 19:27
-
-
Save stuffmc/c2444c9016bc7b54ed20 to your computer and use it in GitHub Desktop.
Not sure why the new #UISplitViewController iOS 8.0 goodness isn't inspectable, but this fixes it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
@IBDesignable | |
class SplitVC: UISplitViewController { | |
@IBInspectable var minCol1Width: CGFloat { | |
get { return self.minimumPrimaryColumnWidth } | |
set(newValue) { self.minimumPrimaryColumnWidth = newValue } | |
} | |
@IBInspectable var maxCol1Width: CGFloat { | |
get { return self.maximumPrimaryColumnWidth } | |
set(newValue) { self.maximumPrimaryColumnWidth = newValue } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment