HomeiOS DevelopmentDrawback on decision in simulator iOS 26

Drawback on decision in simulator iOS 26


My display screen shouldn’t be rendering utterly within the simulator, and apparently this solely occurs with iOS 26. I’ve examined it with different iPhone variations within the simulator and the identical drawback happens.

My app startup is already ignoring the secure space and the identical error persists.[Drawback on decision in simulator iOS 26

struct SocialApp: App {
    @State private var themeManager = ThemeManager.shared
    
    var body: some Scene {
        WindowGroup {
            ContentView()
                .modelContainer(DataManager.shared.modelContainer)
                .preferredColorScheme(themeManager.colorScheme)
                .environment(themeManager)
                .ignoresSafeArea(.keyboard)
        }
    }
}

struct ContentView: View {
    var body: some View {
        SocialAppView(
            store: Store(initialState: SocialAppFeature.State()) {
                SocialAppFeature()
            }
        )
    }
}

And my SocialAppView

public struct SocialAppView: View {
    @Bindable var store: StoreOf<SocialAppFeature>
    
    public init(store: StoreOf<SocialAppFeature>) {
        self.store = store
    }
    
    public var body: some View {
        ZStack(alignment: .bottom) {
            AppColors.backgroundGradient
                .ignoresSafeArea()
            
            // Content based on selected tab
            Group {
                switch store.selectedTab {
                case .home:
                    homeTab
                case .tickets:
                    ticketsTab
                case .addTicket:
                    Color.clear
                case .favorites:
                    favoritesTab
                case .profile:
                    profileTab
                }
            }
            .toolbar(.hidden, for: .tabBar)
            .ignoresSafeArea(.keyboard)
            
            CustomTabBar(
                selectedTab: $store.selectedTab.sending(.tabSelected),
                onAddTicket: {
                    store.send(.addTicketTapped)
                }
            )
        }
        .sheet(isPresented: $store.showingAddTicket.sending(.setShowingAddTicket)) {
            AddTicketView(store: store.scope(state: .addTicket, action: .addTicket))
        }
    }

I hope the rendering is complete in my simulator. Is there any configuration missing in the SwiftUI scene?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments