Closed denandreychuk closed 9 months ago
Hey there, @denandreychuk!
This issue is concerning, and seems to be a limitation with how Apple is interfacing SwiftUI with Metal. Apparently, it fails to convert a view into a texture to be used in Metal when either dimension go past 545 points. In the case above, 482 plus 64 points of padding equals 546 which causes a texture conversion error to trigger.
This limit seems to be weirdly low — on Mac, for example, I was able to run the code with no issues. I'll file a radar on it through Feedback Assistant and see how it goes.
I've looked deeper into this and the issue apparently is exclusive to apps running on the iOS simulator. I submitted an issue on feedback assistant (FB13604685) with these specific details — let's see if it gets fixed!
As it's not an urgent issue that directly impacts the quality of the codebase, I'll close this for now and add a disclaimer in the README.
Oh, I see! Thanks for looking into this, @joogps!
We have gradient view in the project example. If I change only one line of code to make it rect not the square, the view completely disappears: