SwiftUI
Button Opens URL #
Button(action: {
if let url = URL(string: "https://rknight.me") {
NSWorkspace.shared.open(url)
}
}) {
Text("Website")
.foregroundColor(Color.blue)
}
Using SF Symbols #
Image(systemName: "bolt.circle")
.foregroundColor(.yellow)
Centre VStack #
VStack(alignment: .center)
Links #
- LostMoa - Customise About Panel on macOS in SwiftUI
- SwiftUI Tutorials | Apple Developer Documentation
- SwiftUI: Getting Started | raywenderlich.com
- Introduction to SwiftUI · Mastering SwiftUI Book - Sample
- SwiftUI by Example - free quick start tutorials for Swift developers
- Implementing a drag-and-drop zone in Swift
- SwiftUI: How to drag and drop a contact from Contacts on macOS - Stack Overflow