ViewThatFits support #155
Louis-PAGNIER
started this conversation in
General
Replies: 2 comments
-
Can you describe one or two concrete examples of how you'd like to use it? That always helps us evaluate the scope. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes of course ! ViewThatFits(in: .horizontal) {
ScrollView(.horizontal) {
HStack {
// many images or anything else
}
}.frame(minWidth: 800)
ScrollView(.vertical) {
VStack {
// same images or content
}
}
} An other use case is when I have multiple views, with different level of details (e.g. presenting an item). ViewThatFits {
AllDetailsView(item: item) // probably iPad landscape
ManyDetailsView(item: item) // probably iPad portrait
OnlyEssentialDetailsView(item: item) // probably iPhone
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Is ViewThatFits on the roadmap for SkipUI ?
For me it is an important element to support larger/smaller layouts.
Also, I don't know if it would be difficult to implement and how it can be done.
Beta Was this translation helpful? Give feedback.
All reactions