Type Aliases
The following type aliases are available globally.
-
Public typealias for consistency with FlintUIAction which is a convenience to avoid full namespacing of FlintCore.xxxAction on iOS 13
Declaration
Swift
public typealias FlintAction = Action
-
Convenience type for use when no presenter type is required.
See
Action
Declaration
Swift
public typealias NoPresenter = Void
-
Convenience alias to avoid UIKit naming clases
Declaration
Swift
public typealias FlintUIAction = UIAction
-
Actions conforming to
DismissUIAction
will automatically dismiss a presenter that is aUIViewController
on UIKit platforms.Example usage:
final class ShowProfileFeature: Feature { let dismiss = action(DismissShowProfileAction.self) ... } final class DismissShowProfileAction: DismissingUIAction { } // Then, in some app code: ShowProfileFeature.dismiss.perform(withInput: .animated(true))
See
DismissUIInput
Public typealias for consistency with FlintUIAction which is a convenience to avoid full namespacing of FlintCore.xxxAction on iOS 13
Declaration
Swift
public typealias FlintDimissUIAction = DismissingUIAction
-
A representation of a Feature’s identity in the graph of features defined in the app.
This type is currently an alias to TopicPath
Declaration
Swift
public typealias FeaturePath = TopicPath
-
The type for parameters that can be decoded and encoded for a URL.
Declaration
Swift
public typealias RouteParameters = [String : String]
-
The protocol for encoding and decoding an input value to and from URL route parameters. Conform your input types to this to to enable execution of actions with your input type when incoming URLs are parsed, as well as creation of URL links to those actions.
Declaration
Swift
public typealias RouteParametersCodable = RouteParametersDecodable & RouteParametersEncodable
-
Public typealias for consistency with FlintUIAction which is a convenience to avoid full namespacing of FlintCore.xxxAction on iOS 13
Declaration
Swift
public typealias FlintIntentAction = Action
-
Undocumented
Declaration
Swift
public typealias FlintIntentResponse = INIntentResponse
-
-
Undocumented
Declaration
Swift
public typealias FlintIntent = INIntent
-
-
Undocumented
Declaration
Swift
public typealias LoggableIntent = FlintIntent & FlintLoggable
-
-
Undocumented
Declaration
Swift
public typealias FlintImage = UIImage
-
An unsigned 32-Bit Integer representing a checksum.
Declaration
Swift
public typealias CRC32 = UInt32
-
A custom handler that consumes a
Data
object containing partial entry data.Throws
Can throw to indicate errors during data consumption.Declaration
Swift
public typealias Consumer = (_ data: Data) throws -> Void
Parameters
data
A chunk of
Data
to consume. -
A custom handler that receives a position and a size that can be used to provide data from an arbitrary source.
Throws
Can throw to indicate errors in the data source.Declaration
Swift
public typealias Provider = (_ position: Int, _ size: Int) throws -> Data
Parameters
position
The current read position.
size
The size of the chunk to provide.
Return Value
A chunk of
Data
.