Suppose I create a new Xcode project of SwiftUI with app name “ExampleApp”, then Xcode automatically generates a file ExampleAppApp.swift
that contains the following code:
@main
struct ExampleAppApp: App {
...
}
Can I change the name of this file and the struct, such as changing it to ExampleApp.swift
and struct ExampleApp: App
? If so, do I also need to modify any other place in the project?
New contributor
HelloVictor2000 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.