Skip to content

Instantly share code, notes, and snippets.

@malcommac
Created January 22, 2022 22:55
Show Gist options
  • Save malcommac/85373b446047a64874a07c2beace779e to your computer and use it in GitHub Desktop.
Save malcommac/85373b446047a64874a07c2beace779e to your computer and use it in GitHub Desktop.
struct UserExperiments: FlagCollectionProtocol {
@Flag(default: false, computedValue: MiscFlags.computedRememberLogin)
var rememberLogin: Bool
private static func computedRememberLogin() -> Bool? {
Language.main.code == "it" && allowsSSON == true
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment