Monday, March 25, 2024
HomeiOS DevelopmentiOS SwiftUI - NavigationLink freezes when opening

iOS SwiftUI – NavigationLink freezes when opening


NavigationLink(vacation spot: Profile(uid: meme.userid), label: {

and the profile view:

@AppStorage("sound") var sound: Bool = true
@AppStorage("serverScaling") var serverScalingString: String = ""
@AppStorage("hiddenUsers") var hiddenUsersString: String = ","

var uid: Int
@State var uNickname: String = ""

init(uid: Int) {
    UIScrollView.look().bounces = false
    self.uid = uid
}

@State var profileViewHeight: CGFloat = 0 // will replace in georeader
@State var profileViewOffset: CGFloat = 0
@State var lastScrollOffset: CGFloat = 0
@State var startedScrolling = false

@State var showToastFormatNotSupported = false

@State non-public var memes = [MemeModel]()
@State non-public var memesReceived = [MemeReceived]()
@State var gettingMemes = false
@State var class = "person"
@State var loadinglayout = true


var physique: some View {
    
    Textual content("bla")

why does if freeze? Ofc I’ve seen different questions on freeze on opening NavigationLink however not one of the solutions helped



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments