Skip to content

Instantly share code, notes, and snippets.

@malcommac
Created January 22, 2022 22:54
Show Gist options
  • Save malcommac/0d8bffdbc79426bddbc37409f97ef5e2 to your computer and use it in GitHub Desktop.
Save malcommac/0d8bffdbc79426bddbc37409f97ef5e2 to your computer and use it in GitHub Desktop.
UserExperiments_8.swift
public class FFService {
init() {
// ....
switch target {
case .es:
overwriteESFlags()
case .it:
overwriteITFlags()
...
}
private func overwriteESFlags() {
user.allowsSSON.setValue(true, provider: [LocalProvider.self])
// ...
}
private func overwriteITFlags() {
user.allowsSSON.setValue(false, provider: [LocalProvider.self])
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment