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

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

jquery - Multiple issues with pushstate: history, loading, calling functions -

ios - retrievePeripherals deprecated in IOS7 how to substitude it with retrievePeripheralsWithIdentifiers -