SwiftUI Extract @ToolbarContent to its own var

前端 未结 0 974
甜味超标
甜味超标 2021-02-10 17:30

Its possible to extract the toolbar content in a separate var like using @ViewBuilder? I would like to extract it and set .toolBar(content: myToolBarContent)

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