You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm hitting a number of layout bugs where the layout looks different on Android than it does on iOS. I can repro them in my app, but it's a struggle to come up with a reduced test case.
Unfortunately, it relies on the Layout protocol which isn't supported in SkipUI.
Is there a way to do something equivalent in Skip? I want to log the proposed / result sizes at various points in the hierarchy.
(More generally, any advice on debugging layout in transpiled code? I've tried the Layout Inspector and, as far as I can tell, it's totally unusable on Skip code. It's full of generated Compose, ComposeContent, ComposeContainer and setValues, but it doesn't show any recognizable UI components, and of course there's no way to see why the layout looks the way it does in Layout Inspector, even in idiomatic Compose code. All I can see is see the width and height, not the proposed size vs. actual.)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm hitting a number of layout bugs where the layout looks different on Android than it does on iOS. I can repro them in my app, but it's a struggle to come up with a reduced test case.
When debugging iOS views, I normally use this
logSizes
view extension. https://talk.objc.io/episodes/S01E318-inspecting-swiftui-s-layout-processUnfortunately, it relies on the Layout protocol which isn't supported in SkipUI.
Is there a way to do something equivalent in Skip? I want to log the proposed / result sizes at various points in the hierarchy.
(More generally, any advice on debugging layout in transpiled code? I've tried the Layout Inspector and, as far as I can tell, it's totally unusable on Skip code. It's full of generated
Compose
,ComposeContent
,ComposeContainer
andsetValues
, but it doesn't show any recognizable UI components, and of course there's no way to see why the layout looks the way it does in Layout Inspector, even in idiomatic Compose code. All I can see is see the width and height, not the proposed size vs. actual.)Beta Was this translation helpful? Give feedback.
All reactions