Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SplitTestingManager {
- static func getSplitValue<Value: SplitTestProtocol>(for split: Value.Type) -> Value.ValueType {
- let group = UserDefaults.standard.value(forKey: split.self.identifier) as! String
- return Value(group: group).value
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement