Skip to content

Commit

Permalink
Merge pull request #281 from mohssenfathi/prefill-objc
Browse files Browse the repository at this point in the history
Adds objc support to Prefill
  • Loading branch information
mohssenfathi authored May 4, 2023
2 parents 5a94961 + 329fdad commit f7834b6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/UberCore/Authentication/PrefillValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -21,7 +21,7 @@ import Foundation
self.lastName = lastName
}

var dictValue: [String: String] {
@objc var dictValue: [String: String] {
[
"email": email,
"phone": phoneNumber,
Expand Down

0 comments on commit f7834b6

Please sign in to comment.