I am someone that wants to be a developer, and I want to make a simple game that runs on older iOS versions. What version of Xcode does this and does Swift UI work?
What version of Xcode can I make a game for older iOS versions (ex: iOS 5) but still playable on iOS 17?
zero
iOS 13 is the earliest iOS version that can run a SwiftUI app.
Xcode 14 is currently the earliest Xcode version you can use to submit apps to the App Store. iOS 11 is the earliest version you can target with Xcode 14.
I don't understand your goal here? Probably everything should be able to work from iOS 5 to 17 if you write your app in Objective-C and don't use API's, Frameworks whatever that are not supported on iOS 5.0 (but can be handled by using some pre processor stuff). The Question is why should you do this? Why do you want support such an old OS Version that is outdated for years and nearly nobody is using It by today. Before you start you should maybe take some footsteps in the Coding Game for better understanding everything ;)
Cheers Vinz