skip to Main Content

Swift/XCode declaring an array

I tried to do var title = [String]() but an error popped up: Property 'title' with type '[String]' cannot override a property with type 'String?' How to fix? have also tried directly var title = ["a", "b", "c"] and got…

VIEW QUESTION

Xcode – Hide Title Bar in SwiftUI App for macCatalyst

How can I hide the Title Bar in the new SwiftUI App Protocol? Since the AppDelegate.swift and SceneDelegate.swift protocols are gone, I cant follow this documentation anymore: https://developer.apple.com/documentation/uikit/mac_catalyst/removing_the_title_bar_in_your_mac_app_built_with_mac_catalyst I can't implement this code: class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window:…

VIEW QUESTION
Back To Top
Search