Extensions

The following extensions are available globally.

  • This allows us to deal with HSB colors, and detect grayscale and clear

    See more

    Declaration

    Swift

    class UIColor : NSObject, NSSecureCoding, NSCopying
  • This makes it easier to convert between Degrees and Radians.

    See more

    Declaration

    Swift

    struct CGFloat
  • These are String class extensions that we’ll use throughout the app.

    See more

    Declaration

    Swift

    struct String
  • These are useful UIView extensions that we use to get the current first responder, and add dynamically-constructed auto layout views.

    See more

    Declaration

    Swift

    class UIView : UIResponder, NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate
  • This is a simple way to create a simple color rectangle.

    See more

    Declaration

    Swift

    class UIImage : NSObject, NSSecureCoding
  • Int

    Just a way to get an int from our time tuple.

    See more

    Declaration

    Swift

    struct Int : FixedWidthInteger, SignedInteger