Just like this pic shows, how to add secondary panel out side of the main panel by using SwiftUI?
Hey @YimingLi,
These accessory views can be created by either using Toolbars or Ornaments. The application in your screenshot most likely used toolbars.
In Creating tabletop games, a toolbar is used to show the game reset and share play buttons.
In Hello World, you can enable a settings button ornament on each panel, by setting the showDebugSettings
to true
in SettingsButton.swift
.
Thanks for your question,
Michael