Post

Replies

Boosts

Views

Activity

Is there a better way to hide a view in a custom Layout other than placing it off-screen?
I have a custom Layout that places a number of labels for a cell footer in a certain way based on the available width that needs to conditionally hide those views that do not entirely fit anymore (based on some priorities I specify). Currently I simply move the subviews that do not fit anymore off-screen and use clipping to hide them outside the layout, as I did not find an "official" way to hide / exclude a subview from a Layout. Does anyone know a better / nicer way to do this in SwiftUI?
Topic: UI Frameworks SubTopic: SwiftUI
0
0
32
5d
SiriTipView not available on macOS??
According to the (very sparse) documentation, SiriTipView should be available on macOS (13+), but I cannot get it to resolve in XCode -- I also can not verify availability for macOS in the public headers for the AppIntents or the SwiftUI frameworks? Is this simply a mistake in the documentation and it is NOT available on macOS, or am I missing something?
2
0
510
Nov ’23
Is there a better way to hide a view in a custom Layout other than placing it off-screen?
I have a custom Layout that places a number of labels for a cell footer in a certain way based on the available width that needs to conditionally hide those views that do not entirely fit anymore (based on some priorities I specify). Currently I simply move the subviews that do not fit anymore off-screen and use clipping to hide them outside the layout, as I did not find an "official" way to hide / exclude a subview from a Layout. Does anyone know a better / nicer way to do this in SwiftUI?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
0
Boosts
0
Views
32
Activity
5d
SiriTipView not available on macOS??
According to the (very sparse) documentation, SiriTipView should be available on macOS (13+), but I cannot get it to resolve in XCode -- I also can not verify availability for macOS in the public headers for the AppIntents or the SwiftUI frameworks? Is this simply a mistake in the documentation and it is NOT available on macOS, or am I missing something?
Replies
2
Boosts
0
Views
510
Activity
Nov ’23