Protocols

The following protocols are available globally.

  • Mechanica

    Objects adopting the UpdateTimestampable have an updateAt property.

    See more

    Declaration

    Swift

    public protocol UpdateTimestampable: class
  • Mechanica

    Objects adopting the DelayedDeletable support two-step deletion.

    See more

    Declaration

    Swift

    public protocol DelayedDeletable: class
  • Mechanica

    Objects adopting the RemoteDeletable support remote deletion.

    See more

    Declaration

    Swift

    public protocol RemoteDeletable: class
  • Mechanica

    Classes adopting this protocol can associate values to the object itself.

    See more

    Declaration

    Swift

    public protocol ValueAssociable
  • Objects adopting the FetchConfigurable support a variety of fetching helper functionalities.

    See more

    Declaration

    Swift

    public protocol FetchConfigurable: class
  • Mechanica

    Types conforming to BinaryConvertible can be represented in binary base.

    See more

    Declaration

    Swift

    public protocol BinaryConvertible
  • Mechanica - TODO: Rename this protocol FixedWidthIntegerRandomizable with Swift 4.

    See more

    Declaration

    Swift

    public protocol IntegerRandomizable
  • Mechanica

    Types adopting the StoryboardEnumerable protocol can be used to define Storyboard names.

    See more

    Declaration

    Swift

    public protocol StoryboardEnumerable
  • Mechanica

    Objects adopting the StoryboardIdentifiable protocol have an unique Storyboard ID.

    See more

    Declaration

    Swift

    public protocol StoryboardIdentifiable: class
  • Types adopting the ModelVersion protocol can be used to describe a Core Data Model and its versioning.

    See more

    Declaration

    Swift

    public protocol ModelVersion: Equatable
  • Mechanica

    Types conforming to PropertyListReadable can be used to read values from a Property List (.plist) file.

    See more

    Declaration

    Swift

    public protocol PropertyListReadable
  • Mechanica

    Types adopting the NibEnumerable protocol can be used to define Nib names.

    See more

    Declaration

    Swift

    public protocol NibEnumerable
  • Mechanica

    Types adopting the NibLoadable protocol can be loaded from a Nib.

    Declaration

    Swift

    public protocol NibLoadable
  • Mechanica

    Objects adopting the NibIdentifiable protocol are nib based and are the XIB root object.

    See more

    Declaration

    Swift

    public protocol NibIdentifiable: class