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
Is there a way to use environmental size classes when defining a custom TabItemStyle?
I would like to show text bellow the icon when the app has a .regular.horizontalSizeClass, and only show the icon when it is .compact. With the current implementation I'm not really sure how to do it in a way that the size class variable gets updated correctly and I don't get "Accessing Environment<Optional<UserInterfaceSizeClass>>'s value outside of being installed on a View. This will always read the default value and will not update."
The text was updated successfully, but these errors were encountered:
Is there a way to use environmental size classes when defining a custom TabItemStyle?
I would like to show text bellow the icon when the app has a
.regular
.horizontalSizeClass
, and only show the icon when it is.compact
. With the current implementation I'm not really sure how to do it in a way that the size class variable gets updated correctly and I don't get"Accessing Environment<Optional<UserInterfaceSizeClass>>'s value outside of being installed on a View. This will always read the default value and will not update."
The text was updated successfully, but these errors were encountered: