Skip to content

Instantly share code, notes, and snippets.

@malcommac
Created January 22, 2022 22:53
Show Gist options
  • Save malcommac/cf8e182a11f31ca43f73abec2b50ea13 to your computer and use it in GitHub Desktop.
Save malcommac/cf8e182a11f31ca43f73abec2b50ea13 to your computer and use it in GitHub Desktop.
UserExperiments_6.swift
struct UserExperiments: FlagCollectionProtocol {
@FlagCollection(description: "A nested collection")
var secrets: SecretsExperiments
@Flag(key: "sson", default: false, description: "Enable Single-Sign-On")
var allowsSSON: Bool
}
struct SecretsExperiments: FlagCollectionProtocol {
@Flag(default: false, description: "Risky feature!")
var boomFeature: Bool
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment