Swift 5.1 Two Quick Tips

The release of Swift 5.1 brought some useful polish to the language with minimal source breaking changes. Some of the bigger improvements like property wrappers and ordered collection diffing take some time to get your head around. Luckily there are also some quick hits that you can start using today.

Read On →

Scroll View Layouts With Interface Builder

Laying out a scroll view is a confusing task. I found it easier when, in iOS 11, Apple introduced frame and content layout guides. Too bad they neglected to add them to Interface Builder. That changed in Xcode 11. Here’s a quick guide on how to use them.

Read On →

Editing A Swift Package

When I want to make changes to a Swift package, I find it useful to do it in the context of a project that depends on that package. Unfortunately, you can’t directly edit a Swift package you add as a dependency to an Xcode project. It’s read-only and managed by Xcode. What you can do is add a local copy of the package that overrides the package dependency.

Read On →

Creating Swift Packages in Xcode

Xcode 11 adds support for the Swift Package Manager. Here’s my quick guide to creating Swift packages with Xcode 11.

Read On →

Xcode Source Control Accounts

Xcode has supported adding your GitHub account since Xcode 9 and Bitbucket accounts since Xcode 10. I prefer to use a separate Git client, but the support for Swift packages in Xcode 11 made me want to try the integration again. I had no problem adding a GitHub account, but Bitbucket was more of a struggle. Here’s what worked for me.

Read On →
Archives Categories