The answer is both. Swift can be used to build software that runs on the client (frontend) and the server (backend) . Most modern iOS (and iPadOS), tvOS, macOS, and watchOS applications are written in Swift, proving that it is an excellent programming language for frontend development.
Read moreWhat database is used for iOS apps?
The 3 Best Databases for iOS Apps
Read more