When to use as, as!, or as?, how to handle Any, and when you need to use var instead of let even though you don’t change the value.
Swift 4.0
A starter Xcode 9.2 project to form a base for quick, scripting-style apps. Free of all copyright, free to use. Runs on El Capitan, Sierra, and High Sierra.
You want to read in a property list to structured data in Swift. The solution – in Swift 4 – is in a Coder, as explained here.
Extension functions for the URL class which provide full access to xattrs without leaving the comfort of Swift 4.
New updates to these apps fix crashing bugs when using styled log display, or converting log excerpts to CSV (Consolation).
Maintaining a menu gathered across all the open documents could be tricky. Here’s a simple solution using UserDefaults and NotificationCenter.
Drawing in a graphics view shouldn’t be as hard as it seems. And how making custom ToolTips is simple, when you know how.
Dictionaries are valuable, perhaps vital for working with property lists, but seldom as flat as examples suggest. Here are some nested examples in real code.
Using Swift 4 for a classic scripting task: copying and restructuring files and folders, here to create a logarchive bundle.
