Swift - Offshore Rendering

I ran into a problem while debugging application performance written in Swift. It is important to note Swift because the application uses code rewritten from Obj-C. I mean the same methods and functions, but in a different language.

I launched the application on a 9.3-simulator, turned on off-screen visualized coloring, and everything was lighter than yellow.

enter image description here

But I know that every element is optimized, and it should not look like this. This is what the same screen looks like for the Obj-C version. Only the status bar and the corners of the text input field below the table are highlighted.

enter image description here

How can I handle this? Is this my mistake or Swift's mistake?

Change The problem is reproduced even for an empty table. Find the Swift project and go to ChatViewController. It contains only the View table inherited from SLKTextViewController.

Edit2 . The problem can also be reproduced in an empty project using only the navigation controller and the root view controller.

enter image description here

PS: Source code can be found here for the Swift version: https://github.com/Kilograpp/Mattermost-iOS-Swift

Obj-C Version: https://github.com/Kilograpp/Mattermost-iOS

+6
source share
1 answer

I finally understood what was going on. When the root navigation controller has a translucent navigation panel, this causes a problem.

+3
source

All Articles