Extensions

The following extensions are available globally.

  • This extension allows the FileManager to generate a unique directory name.

    See more

    Declaration

    Swift

    class FileManager : NSObject
  • This is an extension to the String type that returns the String as an IP address.

    See more

    Declaration

    Swift

    struct String
  • This is an extension to the standard NSView class, so we can see if we are in dark mode. Cribbed from here: https://stackoverflow.com/a/52523517/879365

    See more

    Declaration

    Swift

    class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol
  • These are a variety of cool String extensions that add some great extra cheese on the pizza.

    See more

    Declaration

    Swift

    protocol StringProtocol : BidirectionalCollection, Comparable, ExpressibleByStringInterpolation, Hashable, LosslessStringConvertible, TextOutputStream, TextOutputStreamable where Self.Element == Character, Self.Index == String.Index, Self.StringInterpolation == DefaultStringInterpolation, Self.SubSequence : StringProtocol