UI Bug with Xcode's invisible characters in documentation comments

Feedback number: FB12128126

I like to display invisible characters in my text editors/IDEs because I want to know if the spaces I’m seeing are spaces or tabs. I also like to be able to tell immediately if I’m seeing multiple spaces or not.

Here is an example of what that looks like. Notice the grey dots between words. screenshot of xcode showing invisible spaces rendered visible

In Xcode, you can find this in the Editor menu labeled as Invisibles.

screenshot snippet of the editor menu in xcode showing the invisibles item

Today I noticed that when using documentation comments, the invisibles are misaligned and lay on top of the characters instead of between them. I submitted a feedback, but I’m not sure it will ever be addressed so I wrote this post in case someone else runs into the same thing.

screenshot of xcode showing invisibles in documentation comment misaligned layout

misaligned invisibles in documentation comment.

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 starting to work on the UI Tests that need to run in order to trigger the screens I want to show and then it hits me.

The app I’m working on uses MusicKit and unfortunately the Xcode Simulators aren’t able to really do anything with MusicKit i.e. they can’t search or play music which is kind of a big deal. This hadn’t been much an issue during development because I could just run the app on my phone.

From what I can tell I will not be able to use Fastlane to automate this screenshot creation because it relies on using simulators for running the UI Tests that would then capture screenshots. What a bummer (though I sure hope I’m wrong!).

Fortunately I found another resource from Benoit Pasquier that might make it possible for me to use UI Tests to automate screenshots to some degree. It won’t be quite as extensive, but my wife has a regular sized iPhone and I have a big one so at least I’ll have two sets of screenshots. No luck on the iPhone SE size. Hopefully that isn’t a dealbreaker, but we’ll see. This is all very new to me.

This is my first time writing (re: rambling) about this app and if you’d like to hear more or be invited to the TestFlight, feel free to comment on this post or shoot me an email at nick_kaczmarek@icloud.com.

Cheers ๐Ÿฅ‚