diff --git a/NYPLCardCreator/CardCreator.swift b/NYPLCardCreator/CardCreator.swift index 54fced8..f669220 100644 --- a/NYPLCardCreator/CardCreator.swift +++ b/NYPLCardCreator/CardCreator.swift @@ -1,7 +1,7 @@ import UIKit -@objc public final class CardCreator: NSObject { - @objc public static func initialNavigationControllerWithConfiguration( +@objcMembers public final class CardCreator: NSObject { + public static func initialNavigationControllerWithConfiguration( _ configuration: CardCreatorConfiguration) -> UINavigationController { diff --git a/NYPLCardCreator/CardCreatorConfiguration.swift b/NYPLCardCreator/CardCreatorConfiguration.swift index b6d10e3..8c030d6 100644 --- a/NYPLCardCreator/CardCreatorConfiguration.swift +++ b/NYPLCardCreator/CardCreatorConfiguration.swift @@ -2,7 +2,7 @@ import Foundation /// A `Configuration` instance is used by applications to set up a new card registration /// flow. -@objc public final class CardCreatorConfiguration: NSObject { +public final class CardCreatorConfiguration: NSObject { /// The base URL for all API requests, e.g. the base URL for /// "http://qa.patrons.librarysimplified.org/v1/validate/username" is /// "http://qa.patrons.librarysimplified.org/v1". @@ -19,7 +19,7 @@ import Foundation /// Saves in-progress data entered by User/Patron var user: UserInfo - public init( + @objc public init( endpointURL: URL, endpointVersion: String, endpointUsername: String,