Last active
January 23, 2022 19:08
-
-
Save paulw11/7772e98743bcf39407e2bad884018330 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Passbase | |
class MyPassbaseWrapper { | |
static func initialisePassbase:(_ apiKey: String) { | |
PassbaseSDK.initialize(publishableApiKey: apiKey) | |
} | |
} |
These are the errors I get without making any changes to your code:
::ERROR:: swiftWrapper.swift:14:40: Expected '(' in argument list of function declaration
Current code: @objc static func initialisePassbase:(_ apiKey: String)
Xcode suggested change(fix): @objc static func initialisePassbase():(_ apiKey: String)
::ERROR:: swiftWrapper.swift:14:40: Expected '->' after function parameter tuple
Current code: @objc static func initialisePassbase:(_ apiKey: String)
Xcode suggested change(fix): @objc static func initialisePassbase -> (_ apiKey: String)
::ERROR:: swiftWrapper.swift:14:42: Tuple element cannot have two labels
Current code: @objc static func initialisePassbase:(_ apiKey: String)
Xcode suggested change(fix): @objc static func initialisePassbase:(String)
::ERROR:: swiftWrapper.swift:15:51: Cannot find 'apiKey' in scope
Current code: PassbaseSDK.initialize(publishableApiKey: apiKey)
Xcode suggested change(fix): NONE
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ok... will try. Thank you!