0
Fixed

Second-to-last tab disappears on iPhone 13 mini

envoleon 1 week ago in iPhone updated by Alexander Blach (Developer) 1 week ago 10

4598647982707891663.mp4The second-to-last tab disappears. The name of the tab doesn’t matter. The device is an iPhone 13 mini.

Under review

Thanks for the video! I can see the problem in the video and tried to reproduce it on my iPhone.

Unfortunately, I could not reproduce it. I tried opening a lot of files in tabs, but I never see the problem that is shown in the video.

First of all, can you please try if a reboot of your iPhone changes the behavior?

Are there any special settings you have enabled on your iPhone - e.g. accessibilty settings or dynamic type? I already tried enabling the "Bold text" accessibility settings, but that didn't cause a problem.

I’m not very experienced in programming, but I had a similar issue in my app. The problem might be related to the border between the second-to-last and the last tab, or at the very end of the last tab. Because of this, the block either disappears or wraps to the next line. One possible solution is to change the border style to outside or inside, or to properly calculate the total width of the block including the borders of each tab so that it fits the screen width precisely. Try reproducing the issue by adjusting the width of the tab container to even and odd values during development.

I’ve tried your suggestions, but the issue remains.

First I need to be able to reproduce the issue.


Does it depend on the number of open tabs? Or does it also happen with just two or three tabs?

Only when the tabs take up the entire screen width or more, and the issue is always with the second-to-last tab.

Ok. Which iOS version are you running?

Started

I could now reproduce it in the iOS Simulator when selecting an iPhone 13 mini as the device and opening 8 tabs.

Thanks a lot for letting me know about this issue! I'll investigate what's going on.

+1

It looks like I used a fractional width for the tabs and forgot to round it to the next integer. 


On iPhone 13 mini, this resulted in a tab width of approximately 107.142857, which caused layout problems in the underlying UICollectionView.

When I now round the width to the next integer, the problem is gone.

This will be fixed in the next update.

+1

Thanks again for telling me about it! 


The issue was dependent on the screen width and didn't cause a problem on iPhone 16 Pro, so I didn't see that problem on my own device. It was also only a problem on iPhone, not on iPad.

Of course, this was kind of a rookie mistake. I'm not sure why I never noticed the fractional tab widths on iPhone. Looks like AutoLayout made sure that the subviews are positioned on pixel boundaries, so the images and labels were not blurred.

Fixed

The issue should be fixed in Textastic 10.7.2, which was just released.

Please let me know if it works for you now.