If you want to connect to MySQL database directly from your app, consider the library OHMySQL. It supports iOS, macOS and Mac Catalyst.
Enjoy!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: