How to generate header for swift files in Xcode

I have to look this tweet up every time so I decided to capture it in a blog post. It’s ^⌘↑ and ^⌘↓ to toggle a swift file’s header view, in case 100 people haven’t already mentioned this. Link to tweet from Ben Packard

Collapse all Xcode navigator items

Say you have a bunch of open groups or you’ve performed a search and you want to see all the file names but not the places where the search query is found. You can select all with ⌘ + a then hit the left arrow to close everything or the right arrow to open everything.

How to list installed apps on a iOS simulator

This lists apps from a named simulator, converts to json, then finds non-apple apps. xcrun simctl listapps "iPad Air (5th generation)" \ | plutil -convert json -o - -- - \ | jq '. | keys | .[] | select(. | startswith("com.apple") | not)' This requires that you know the name …

How to see git authors per line in Xcode

In my previous life I used a tool with VSCode called GitLens. What it does is show you what the last git commit for a selected line was. When you hovered over the greyed out text to the right of your code line, you’d get a little popover with more info about the commit. This is a really handy …

I'm working on an iOS app

I’m working on an iOS app and I’m getting so close to releasing the 1.0. I was looking at App Store Connect and noticed that I needed screenshots and I remembered that Fastlane has the ability to automate screenshot creation. Pretty cool I think. So I go through the process of setting up and …