Before developing an ios (or osx) app, iâve decided to gradually discover the swift language. So i ask myself how to solve a problem, and if i find the solution i will post the code snippet. (sorry for my terrible English).
I want to load a javascript file and run its functions
This is my javascript file:
And this is the âSwift solutionâ:
âEt voilĂ !â. It seems easy, but if youâve never programmed with Objective-C, Cocoa, Foundation, ⊠This can be difficult ;).