From 329fdadd32bc92cc1b408c1d6c394a5be17e042c Mon Sep 17 00:00:00 2001 From: mohssen Date: Thu, 4 May 2023 09:26:23 -0700 Subject: [PATCH] Adds objc support to Prefill --- source/UberCore/Authentication/PrefillValue.swift | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/UberCore/Authentication/PrefillValue.swift b/source/UberCore/Authentication/PrefillValue.swift index 8f759a96..b85ef3ca 100644 --- a/source/UberCore/Authentication/PrefillValue.swift +++ b/source/UberCore/Authentication/PrefillValue.swift @@ -5,13 +5,13 @@ import Foundation -@objc public class Prefill: NSObject { - public let email: String? - public let phoneNumber: String? - public let firstName: String? - public let lastName: String? +@objc(UBSDKPrefill) public class Prefill: NSObject { + @objc public let email: String? + @objc public let phoneNumber: String? + @objc public let firstName: String? + @objc public let lastName: String? - public init(email: String? = nil, + @objc public init(email: String? = nil, phoneNumber: String? = nil, firstName: String? = nil, lastName: String? = nil) { @@ -21,7 +21,7 @@ import Foundation self.lastName = lastName } - var dictValue: [String: String] { + @objc var dictValue: [String: String] { [ "email": email, "phone": phoneNumber,