FeatureGroup
public protocol FeatureGroup : FeatureDefinition
A grouping (nesting) of features.
Used to apply some hierarchical struture to feature definitions internally, for logging and debugging user activities.
final class AppFeatures: FeatureGroup {
static var description = "Demo app features"
static var subfeatures: [FeatureDefinition.Type] = [
DocumentManagementFeature.self,
DocumentSharingFeature.self
]
}
-
Undocumented
Declaration
Swift
static var subfeatures: [FeatureDefinition.Type] { get }
-
prepare(actions:)
Extension methodNormally a feature group has no initialisation to do, so we remove the requirement to implement this.
Declaration
Swift
static func prepare(actions: FeatureActionsBuilder)
-
description
Extension methodDeclaration
Swift
static var description: String { get }