a guest Mar 23rd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class SplitTestingManager {
  2.     static func getSplitValue<Value: SplitTestProtocol>(for split: Value.Type) -> Value.ValueType {
  3.         let group = UserDefaults.standard.value(forKey: split.self.identifier) as! String
  4.         return Value(group: group).value
  5.     }
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand