Extensions

The following extensions are available globally.

UIViewController Extension

  • We add a couple of computed properties to report Dark Mode and High-Contrast Mode.

    See more

    Declaration

    Swift

    extension UIViewController

UIView Extension

  • We add a couple of ways to deal with first responders.

    See more

    Declaration

    Swift

    extension UIView

CGFloat Extension

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

    See more

    Declaration

    Swift

    extension CGFloat