-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Milestone
Description
The comments configuration is currently an object with 5 customisations expressed as Bool and 1 main isEnabled flag.
In my head, we could express this the same way with an enum/option set of values and a single commentFeatures array/set.. Something like the following:
Disable Comments:
commentFeatures: []Everything:
commentFeatures:
- title
- description
- example
- externalDocumentation
- capitalizedDescription (capitalized):
commentFeatures:
- description
- capitalizedIn Swift, this would be something like the following:
public enum CommentFeature: String {
case title, description, example, externalDocumentation, capitalized
}
public var commentFeatures: Set<CommentFeature> = [.title, .description, .example, .externalDocumentation, .capitalized]Alternatively I'll just deswiftify the boolean properties on the existing object.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels