question

prabhjotsandhu07 avatar image
prabhjotsandhu07 asked

Has anyone tried Login With Amazon for their iOS app with Swift 3.0?

Hi

Has anyone tried doing LWA for iOS app using Swift 3.0? I saw the documentation and sample code from the https://developer.amazon.com/public/apis/engage/login-with-amazon/docs/use_sdk_ios.html but it is in Objective - C.

Any ideas how I can perform LWA in a Swift code?

Any help or sample code is appreciated on this.

Cheers!

how-tologin with amazonsdkios
1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi prabhjotsandhu07,

I've asked the Login with Amazon team to clarify if any changes are required to make LWA compatible with Swift 3.

0 Likes 0 ·
Asif avatar image
Asif answered

Currently the LWA iOS sdk is not compatible with Swift 3.0 Apple apparently does have a way to execute Objective C code with Swift (and vice versa)

https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithObjective-CAPIs.html

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sheng avatar image
Sheng answered
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.