How to implement connecting to mysql database site in the iOS app?

Good day!

I studied the development of applications for iOS, but only at a basic level, know all the basics. And now I will pull knowledge in order to write a complete application.

Created a website an online store and want him to write an iOS app.
Since all product data (basic information, which should automatically change the app accordingly if changes on the server) are stored in the database on the site server - you need to it will connect from the application -> how it's done (possible sample code in SWIFT or article)?

Or advise how easier to transfer the website to the application using modern development tools. Thanks in advance!
July 4th 19 at 23:57
2 answers
July 4th 19 at 23:59
you do not need to work with the database. smoke what is an api and implement it.
July 5th 19 at 00:01
Either through the REST API, such as JSON, make it on the server and iOS send HTTP requests, either directly to the database, this search for a library.

Find more questions by tags iOSSwift