Код: Выделить всё
//
// AppDelegate.swift
// I am rich
//
// Created by Ishaan on 2024-07-02.
//
import UIKit
@main
class AppDelegate: UIResponder, UIApplicationDelegate { //This is where I am getting the problem
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Customization after application launch
return true
}
// MARK: - UISceneSession Lifecycle
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Select a configuration to create the new scene with
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) {
// Release any resources specific to the discarded scenes
}
}
Подробнее здесь: https://stackoverflow.com/questions/787 ... os-project
Мобильная версия