SwiftPamphletApp icon indicating copy to clipboard operation
SwiftPamphletApp copied to clipboard

ControlGroup

Open ming1016 opened this issue 3 years ago • 0 comments

struct PlayControlGroupView: View {
    var body: some View {
        ControlGroup {
            Button {
                print("plus")
            } label: {
                Image(systemName: "plus")
            }

            Button {
                print("minus")
            } label: {
                Image(systemName: "minus")
            }
        }
        .padding()
        .controlGroupStyle(.automatic) // .automatic 是默认样式,还有 .navigation
    }
}

ming1016 avatar Feb 23 '22 10:02 ming1016