Skip to content

Instantly share code, notes, and snippets.

@stuffmc
Created October 5, 2014 19:27
Show Gist options
  • Save stuffmc/c2444c9016bc7b54ed20 to your computer and use it in GitHub Desktop.
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.
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