Category: IOS Dev

How to make menu in SwiftUI?

@State private var selectedView: LayoutOption = .list var body: some View { Menu(content: { ControlGroup { Button(action: { // Code }) { Image(systemName: "pin.fill") } Button(action: { // Code })…

SwiftUI Button With Customized Style

// // ContentView.swift // Buttons // // Created by WilliamJiamin on 2024/6/20. // // //You can check more on Button at //https://developer.apple.com/documentation/swiftui/button import SwiftUI struct ContentView: View { @State private…