Protocols
The following protocols are available globally.
-
Fading protocol animates view in and out
See moreDeclaration
Swift
public protocol Fading : UIView
-
Protocol auto size the cell to the device width Note: collectionView.collectionViewLayout estimatedItemSize should equal to UICollectionViewFlowLayoutAutomaticSize
available iOS 10 and above Note> Only supports portraite atm. Landscape is still in R&D
See moreDeclaration
Swift
@available(iOS 10.0, *) public protocol AutoSizeable
-
Type is a single object withing a collection of types
See also
DataType
Declaration
Swift
@available(*, deprecated, message: "Renamed to `Model`.Migrate to https://github.com/stanwood/SourceModel_iOS") public protocol Type
-
Delegateble protocol of type
UICollectionViewCell
||UITableViewCell
used to set a delegate of type AnyObjectExample: Delegetable example
protocol ModuleCellOneDelegate: class { func didTapEvent() } protocol ModuleCellTwoDelegate: class { func didTapEvent() } protocol ModuleCellsDelegate: ModuleCellOneDelegate, ModuleCellTwoDelegate {} class ModuleViewController: UIViewController, ModuleCellsDelegate {} class Cell: UICollectionViewCell: Delegetable { ..... cell.set(delegate: self) {} }
See also
Declaration
Swift
@available(*, deprecated, message: "Migrate to https://github.com/stanwood/SourceModel_iOS") public protocol Delegateble : ForceDelegateble
-
Disposable protocol for disposing
See moreUIView
‘s fromsuperviews
Declaration
Swift
public protocol Disposable : UIView
-
Fillable protocol of type
UICollectionViewCell
used to fill cells with type objectExample: Fillable example
cell.fill(with: model)
See also
See moreModel
ModelCollection
Declaration
Swift
@available(*, deprecated, message: "Migrate to https://github.com/stanwood/SourceModel_iOS") public protocol Fillable : ForceFillable
-
Headerable protocol to add header support for
See moreUICollectionView
andUITableView
Declaration
Swift
@available(*, deprecated, message: "Migrate to https://github.com/stanwood/SourceModel_iOS") @objc public protocol Headerable
-
Presentable protocol represents a Presentable class in the stanwood architecture
See moreDeclaration
Swift
public protocol Presentable
-
SourceTypePresentable protocol represents a Presentable class in the stanwood architecture
See moreDeclaration
Swift
@available(*, deprecated, message: "Moved to https://github.com/stanwood/SourceModel_iOS") public protocol SourceTypePresentable