Extensions
The following extensions are available globally.
-
This extension allows the FileManager to generate a unique directory name.
See moreDeclaration
Swift
class FileManager : NSObject
-
This is an extension to the String type that returns the String as an IP address.
See moreDeclaration
Swift
struct String
-
This is an extension to the standard NSView class, so we can see if we are in
See moredark mode.
Cribbed from here: https://stackoverflow.com/a/52523517/879365Declaration
Swift
class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol
-
This cool little extension comes straight from here: https://stackoverflow.com/a/55796671/879365
See moreDeclaration
Swift
protocol Sequence
-
These are a variety of cool String extensions that add some great extra cheese on the pizza.
See moreDeclaration
Swift
protocol StringProtocol : BidirectionalCollection, Comparable, ExpressibleByStringInterpolation, Hashable, LosslessStringConvertible, TextOutputStream, TextOutputStreamable where Self.Element == Character, Self.Index == String.Index, Self.StringInterpolation == DefaultStringInterpolation, Self.SubSequence : StringProtocol