Building a silly WatchKit App Erica Sadun with a short post describing her efforts to build a simple WatchKit app using SwiftUI. The amount of code required to implement her app was small, about 40 lines, but Erica encountered some problems when trying to deploy her app to hardware for testing. Posted on June 24, 2020 #swiftui #xcode #watchkit
Getting the most out of Xcode Previews for SwiftUI John Sundell shows us a number of techniques and abstractions to help us make the most of Xcode 11's Preview feature. As always, John provides lots of code snippets which we can immediately start using in our own code. Posted on June 1, 2020 #ios #xcode #swiftui
Improving Your Build Time in Xcode 10 Patrick Balestra teaches us how to improve our Swift project build times using new features available in Xcode 10. Posted on September 11, 2018 #iOS #Xcode
Conditional Compilation in Swift, Part 1 Dave Delong has developed his own way of conditionalizing compilation of Swift code when using Xcode. Dave shows us how we can use configuration files settings together with certain build settings to conditionally compile code based on the platform being targeted. Posted on August 8, 2018 #compilation #Xcode
Code Injection In Swift Christoffer Winterkvist describes how we can use the Swift Vaccine library together with the Injectionlll macOS app to achieve code injection, or hot reloading, in our Xcode projects. This is pretty cool, and I can definitely see this being used in my day to day development. Posted on June 9, 2018 #injection #Xcode
What’s new in Swift 4.1 Xcode 9.3 beta is now available, and with it comes the latest point release of Swift - Swift 4.1. In this post, Paul Hudson runs through what he considers to the the top three new features of Swift 4.1. Posted on January 27, 2018 #xcode #beta
iOS/macOS Developer Productivity Kit This is not really a Swift language post, but it’s useful if you work in Xcode. Candost Dagdeviren from Swift Post shows us how we can be more productive by utilising Xcode shortcuts together with some third party tools. Posted on January 4, 2018 #xcode #productivity
Xcode 9.1 Improves Display of Fatal Errors Xcode 9.1 significantly improves it’s user feedback when a Swift program terminates due to fatal error. Prior to Xcode 9.1, when a program terminated due to fatal error, the user was often left confused by the non-descriptive error message displayed. With the latest beta, Xcode will now display the reason for the fatal error termination. A nice improvement. Posted on October 9, 2017 #Xcode #error
Measuring Swift compile times in Xcode 9 Xcode Swift compile times are still a source of frustration for developers. The Swift type-checker, although improving with every Swift release, is a bottleneck. In this short post, Jesse Squires shows us how we can use two frontend Swift compiler flags to measure Swift compile times. We can then identify functions and expressions which take a long time to type-check, and update our code with explicitly type annotations. By doing so, we reduce the amount of type inference needed, which should lead to a reduction in compile times. Posted on October 3, 2017 #compiler #Xcode
Speed up Swift compile time Dejan Atanasov provides some tips to speed up Swift compile times. He looks at changes we can make to Xcode project configuration, together with changes to how we write our Swift code. Posted on August 13, 2017 #compile #optimization #Xcode