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++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -