ios - Convert code from Objective C to Swift for FactualSDK -


this first question on stack overflow, integrating factual sdk in app using swift. created bridgeheader framework not figure out how convert line of code in order set authkey , id in swift. in advance!!

factualapi* _apiobject = [[factualapi alloc] initwithapikey:@"yourkey" secret:@"yoursecret"]; 

try this:

let _apiobject = factualapi(apikey:"yourkey" secret:"yoursecret") 

i tested , working fine.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

c# - ItextSharp font color issue in ver 5.5.4+ -

how does one get csharp-sqlite to throw exceptions for duplicates or foreign key constraint violations -