How does SwiftUI let the user enter dates and times in its Date Picker? The answer is without seconds, which are only allowed in watchOS. And it gets worse.
SwiftUI
Displaying log entries using semantic colour seemed most appropriate using AttributedString, but performs very poorly. The solution is a SwiftUI List view.
Moving away from using the log command tool to obtain log extracts for browsing requires using OSLog. Its API explored and implemented in a demo app.
Swift source code implementing drag and drop and more, to accompany the main article.
Implementing a basic drag-and-drop app for macOS using SwiftUI: the DropDelegate protocol, and working with NSItemProvider. With full source and notarized example.
Swift source code to accompany article about implementing a document-based app in SwiftUI for macOS.
Implementing a document-based app in SwiftUI for macOS. Fun and games with menus, and what are the differences between FileDocument and ReferenceFileDocument protocols?
Why is SwiftUI so important that the Swift language was changed to make it more feasible to implement? Is it just for ease of multi-platform support? Or is it just greener grass?
Swift source code to accompany the article on SwiftUI on macOS: text, rich text, markdown, html and PDF views.
Trying to display formatted text in plain text, markdown, rich text, HTML, and PDF using SwiftUI and in AppKit/WebKit views within SwiftUI.
