How to achieve a paste button that can paste the thing on your clipboard in swiftUI?
@State private var text: String = "" var body: some View { PasteButton(payloadType: String.self) { strings in text = strings[0] }.labelStyle(.titleOnly) }
How to make a share Link in swiftui?
ShareLink(item: URL(string: "https://learn-it-free.com)!)
SwiftUI How to add a link like hyperlink that can jump?
// // ContentView.swift // Links // // Created by WilliamJiamin on 2024/6/20. // import SwiftUI struct ContentView: View { var body: some View { VStack { Link("My Patreon Page", destination:…
SwiftUI Button that can show the different results of text while clicking
// // 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…
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…
All the Component of SwiftUI: Buttons
This is a Default Button // // ContentView.swift // Buttons // // Created by WilliamJiamin on 2024/6/20. // import SwiftUI struct ContentView: View { var body: some View { VStack…
How to make a random Colour Grid App? PART 1
// // ColourGeneratorAppApp.swift // ColourGeneratorApp // // Created by WilliamJiamin on 2024/6/19. // import SwiftUI @main struct ColourGeneratorAppApp: App { var body: some Scene { WindowGroup { ContentView() } }…
How to add Alert to your ios App? Part 2
// // ContentView.swift // Mini-SwiftUI-Project-Alert // // Created by WilliamJiamin on 2024/6/18. // import SwiftUI struct ContentView: View { @State private var isShowingAlert = false var body: some View {…
How to add Alert to your ios App? Part 1
// // ContentView.swift // Mini-SwiftUI-Project-Alert // // Created by WilliamJiamin on 2024/6/18. // import SwiftUI struct ContentView: View { @State private var isShowingAlert = false var body: some View {…