Why is NavigationLink called before I even click on it on SwiftUI

后端 未结 0 1548
醉话见心
醉话见心 2021-01-28 18:46

Why is "init" printed four times?

import SwiftUI

struct HomeView: View {

let items: [String] = [“aaa”, “bbb”]

var body: some View {

           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题