Protocols

The following protocols are available globally.

  • Protocol specifying the component’s cell view implementation.

    See more

    Declaration

    Swift

    protocol FWComponentCell : UITableViewCell
  • Protocol specifying a component’s data structure.

    See more

    Declaration

    Swift

    protocol FWComponentModel : Decodable, Encodable
  • Protocol specifying a component’s data structure transfer object.

    Used for decoding the object. We recommend keeping both Model and DTO implementations in the same files, for one is expected to mirror another and DTO is generally used only within the Model Codable methods.

    See more

    Declaration

    Swift

    protocol FWComponentModelDTO : Decodable, Encodable
  • Protocol specifying the component’s data structure.

    See more

    Declaration

    Swift

    protocol FWComponentViewModel

Protocol-Delegate

Protocol-delegate

  • Responsible for providing a communication path between the FWFormViewModel and its View.

    See more

    Declaration

    Swift

    protocol FWFormViewModelDelegate : AnyObject
  • Protocol specifying the characteristics of a component snapshot.

    See more

    Declaration

    Swift

    protocol FWComponentSnapshot : Encodable
  • A protocol that every validator class need to conform to validate components.

    See more

    Declaration

    Swift

    public protocol FWValidator