Nick Ager

4pods

AnyError

Swift µframework - AnyError(cause:ErrorType) - providing type erasure for ErrorType(s). Originally designed to be used as the error type associated with a Future or Result - so that when composing futures with map/flatMap the error type is the same and can be propagated through the compositional chain.

License: MIT

  • Swift

NACommonUtils

  • ActivityOverlay - Light-weight version of MBProgessHUD. Shows a translucent HUD centred in a specified view containing an activity indicator.
  • Array+Functional - func headTail() -> (head: Element, tail: [Element])?; arrayByAppend and arrayByAppendContentsOf non-mutating versions of the stdlib append and appendContentsOf
  • NSMutableAttributedString+Creation - NSMutableAttributedString creation helpers
  • OnePixelConstraint - Designed as a auto-layout width/height constraint that will always be 1px regardless of screen scale
  • String+LineUtils - Strings line helpers
  • UIButton+ActionBlock - Button onPressed: block extension
  • UIGestureRecognizer+ActionBlock - Gesture recognizer block extension
  • UIResponder+FindUIViewController - Walk the responder chain until we find a UIViewController; useful when a UIView needs to access UIViewController API
  • UIView+Autolayout - Autolayout helpers; useAutolayout(), centerInView(..), constrainToWidth(..), constrainToHeight(..)
  • KeepInMemoryMixin - Class mixin to allow the class to keep itself in memory
  • UIView+NibLoading - instanceFromNib() Load an instance of a view from a nib named identically to the class.
  • UIStoryboard+InstantiateViewController - type-safe Storyboard view controller instantiation
  • UIView+border - layer based UIView border util
  • UILabel+Measurement - text size measurement

License: MIT

  • Swift

NADocumentPicker

Encapsulates UIKit document picker UI. Allows the user to select iCloud documents (and Google Drive, One Drive, etc), with a simple Future based API

License: MIT

  • Swift

NATableView

Wrapper for UITableView, UITableViewDataSource and UITableViewDelegate. Convenient when displaying a bounded number of cells (less than 20)

License: MIT

  • Swift