Skip to content

BareFeetWare/BFWControls

Repository files navigation

BFWControls

A framework to simplify building apps using Interface Builder.

Some useful resources:

BFWControls contains many features to simplify building apps visually, especially when using Interface Builder. Features include:

  • NibReplaceable protocol with NibView, NibTableViewCell classes: Loading xib layouts into subclasses with no extra code.
  • Adjustable protocol for UITableView: Sticky header and footer that remain stationery while the table scrolls.
  • HidingStackView: A stack view that hides any subviews that have invisible contents (eg UILabel.text == nil and UIImageView.image == nil) or a UIStackView subview that has all of its subviews hidden. When a stack view has a hidden subview, it removes it from the arrangedSubviews, so the space it occupied is freed, essentially shrinking any unused space.
  • UIView NSLayoutConstraint: Convenient AutoLayout functions like pinToSuperviewEdges(), pinToSuperview(with inset: CGFloat)
  • StaticTableViewController: excludedCells: easy dynamic show/hide cells and sections
  • SegueHandlerType protocol: enum SegueIdentifier
  • UIApplication: unwindToBackmostViewController()
  • UIViewController Unwind unwindToSelf() frontViewController
  • DefaultsHandlerType protocol: Expose UserDefaults as named variables