Extensions

The following extensions are available globally.

Various Strings, Used in Messaging

  • 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

    extension UIView
  • This is a simple way to create a simple “color rectangle.”

    See more

    Declaration

    Swift

    extension UIImage
  • Int

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

    See more

    Declaration

    Swift

    extension Int

Class Extensions

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

    See more

    Declaration

    Swift

    extension UIColor
  • This makes it easier to convert between Degrees and Radians.

    See more

    Declaration

    Swift

    extension CGFloat