📜  添加导航栏按钮 swiftui - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:01.947000             🧑  作者: Mango

代码示例1
.navigationBarItems(
    leading: Button(action: {
        // Actions
    }, label: { Text("Button") }),

    trailing: Button(action: {
    // Actions
    }, label: { Image("Icon") })
)