Post

Replies

Boosts

Views

Activity

Reply to keyboard can't be popped up in live preview mode
The same problem happens to me for a long time, I submitted an issue, and Apple recommend to download Xcode 13.3.1, and macOs 12.4 Beta, now is working perfect, I can enter values with the physical keyboard in any TextField preview. I don't know if downloading only Xcode 13.3.1 will resolve the problem, I had before 13.2.1 I think
Apr ’22
Reply to navigationBar root shows navigation Bar destination when left-edge swipe
import SwiftUI struct ContentView: View {     var body: some View {         NavigationView {             NavigationLink(destination: SecondCounter()){                 Text("Show Second Counter View")}                 .navigationBarTitle("RootView")         }     }     struct SecondCounter : View {         @State var timer: Timer? = nil         @State private var secCounter = 0                var body: some View {             Text("")                 .navigationBarTitle("Second Counter View" ,displayMode:.inline)                 .navigationBarItems(trailing:Text("\(secCounter)"))                 .onAppear {                     self.secondCounter()                 }             .onDisappear {                 self.timer?.invalidate()                 self.timer = nil             }         }         func secondCounter () {             timer =  Timer.scheduledTimer(withTimeInterval: 1, repeats: true, block: { _ in                 self.secCounter += 1             })         }     }     struct ContentView_Previews: PreviewProvider {         static var previews: some View {             ContentView()         }     } } this is the whole program where I get the errors
Jul ’20
Reply to navigationBar root shows navigation Bar destination when left-edge swipe
I don't know how to edit the question again, sorry again. when I begin the left-edge scrolling, that I see the root view, the navigationBarItems(trailing), stop to upgrade the counter, but the timer continue working, (I print my var onBarRighTitle, and continue upgrading), when I stop the scrolling and stay in the destination view, the text receive again the output, and becomes blurry.
Jul ’20
Reply to navigationBar root shows navigation Bar destination when left-edge swipe
I don't know how to edit the question again, sorry. The private var resolution was a false alarm, the counter is the problem, when I do the left-edge,i see more of the root vies, the counter immediately stops, and if I stays on the destination view then timer becomes blurry, and if I tap on < Back, the root view appears with the navigationBar of the destination view. If I go all the way to the right, the root view appears fine, without the destination view bar. it only happens when the timer is working .
Jul ’20