Post
Replies
Boosts
Views
Activity
So if I am understanding this correctly it would go:
NavigationSplitView {
View { ...Sidebar }
TabView {
NavigationStack {
List { .... }
.toolbar { Primary / Secondary Action }
}
}
}
.onChange(of: sizeClass) {
manage detail / automatic
}
Topic:
SwiftUI
SubTopic:
iPhone Duo SwiftUI Q&A
@Environment(.horizontalSizeClass) private var hSizeClass
sorry again that didn't keep After I posted again
Topic:
SwiftUI
SubTopic:
iPhone Duo SwiftUI Q&A
You can check if the size class is .compact so it is one screen or .regular where it is both using
You can use that to determine controls while in compact mode
Topic:
SwiftUI
SubTopic:
iPhone Duo SwiftUI Q&A
Sorry can't edit for some reason it removed getting that variable
@Environment(\.horizontalSizeClass) private var hSizeClass
Topic:
SwiftUI
SubTopic:
iPhone Duo SwiftUI Q&A
If hSizeClass == .regular {
// Unfolded
} else {
// folded
}
Topic:
SwiftUI
SubTopic:
iPhone Duo SwiftUI Q&A
You could use a an ArrangementView and have your app content in primary and for secondary a view that directs people to put another app there. I am unsure if this would be accepted per the app guidelines however
Topic:
SwiftUI
SubTopic:
iPhone Duo SwiftUI Q&A
- Replies
- Boosts
- Views
- Activity
So if I am understanding this correctly it would go:
NavigationSplitView {
View { ...Sidebar }
TabView {
NavigationStack {
List { .... }
.toolbar { Primary / Secondary Action }
}
}
}
.onChange(of: sizeClass) {
manage detail / automatic
}
Topic:
SwiftUI
SubTopic:
iPhone Duo SwiftUI Q&A
- Replies
- Boosts
- Views
- Activity
@Environment(.horizontalSizeClass) private var hSizeClass
sorry again that didn't keep After I posted again
Topic:
SwiftUI
SubTopic:
iPhone Duo SwiftUI Q&A
- Replies
- Boosts
- Views
- Activity
You can check if the size class is .compact so it is one screen or .regular where it is both using
You can use that to determine controls while in compact mode
Topic:
SwiftUI
SubTopic:
iPhone Duo SwiftUI Q&A
- Replies
- Boosts
- Views
- Activity
Sorry can't edit for some reason it removed getting that variable
@Environment(\.horizontalSizeClass) private var hSizeClass
Topic:
SwiftUI
SubTopic:
iPhone Duo SwiftUI Q&A
- Replies
- Boosts
- Views
- Activity
If hSizeClass == .regular {
// Unfolded
} else {
// folded
}
Topic:
SwiftUI
SubTopic:
iPhone Duo SwiftUI Q&A
- Replies
- Boosts
- Views
- Activity
You could use a an ArrangementView and have your app content in primary and for secondary a view that directs people to put another app there. I am unsure if this would be accepted per the app guidelines however
Topic:
SwiftUI
SubTopic:
iPhone Duo SwiftUI Q&A
- Replies
- Boosts
- Views
- Activity