UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Navigation in IPad SplitView in iOS 14.5 beta is completely broken

Forums > SwiftUI

I have tested iOS 14.5 beta and discovered that there are now serious issues in apps that use two column layout in iPad. The issues can be seen if such an app is first used in splitview mode and then the app is returned to full size.

The issues include:

-missing back-button in navigationBar.

-the views change place. Views that were originally located in the right column are now moved to sideBar. This looks really weird and really broken.

-also the navigationLinks remain highlighted when the app is used in the splitview mode.

I have left feedback to Apple with feedback Assistant, but I fear that this is not fixed before the iOS 14.5 release.

You can reproduce the issue with these steps:

-Create a new app and replace the ContentView with my code block.

-Open the sample app with any iPad simulator running iOS 14.5 beta 3

-Drag another app alongside the sample app in split view so that the sample app becomes as narrow as possible. -Navigate to last view in sample app.

-Exit the split view mode by making the sample app full window size again

-Now you see how broken the sample app is. If you use iOS 14.4 simulator, the app has no problems.

import SwiftUI

struct ContentView: View {

    var body: some View {

            NavigationView{
                    View1()
                    Text("Select View")
            }
            .navigationViewStyle(DoubleColumnNavigationViewStyle())
    }
}

struct View1: View {

    var body: some View {

        List {
            NavigationLink(
                destination: View2(),
                label: {
                    Text("Show View2")
            })
        }
    }
}

struct View2: View {

    var body: some View {

            List {
                NavigationLink(
                    destination: View3(),
                    label: {
                        Text("Navigate to View3")
                })
            }
    }
}

struct View3: View {

    var body: some View {

        List {
            NavigationLink(
                destination: Text("View4"),
                label: {
                    Text("Navigate to View4")
            })
        }
    }
}

2      

Does this issue happen on existing apps on the iPad?

2      

Yes. As soon as the iPad is updated to iPadOS 14.5 Beta 3. I have a published app made with SwiftUI and it behaves exactly as my sample app here. And actually there are even more glitches there.

Not funny.

2      

Same here! Issues such as navigationLinks remaining highligted are also present on iPhone. Still not fixed on 14.5 Beta 4. Were you able to fix these issues?

2      

No. To my understanding this is not something that developers can fix, only Apple can.

And yesterday I installed 14.5 Beta 4. All the issues still remain.

2      

New 14.5 Beta 5 was just released. Issue still remains. Still no response from Apple to my feedback. I just send an email to app support, let's see if I can get a response in that way.

In thew meanwhile, please test my issue and send also a feedback to Apple. They have introduced an undocumented change to navigationsystem in SwiftUI and it's really bad for exsisting apps.

2      

BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.

Get it on Hacking with Swift+

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.