Utility Functions and Classes for iOS & Mac