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 am trying to hide the menu, and with little luck, cannot find any options other than the menuHeight, however, this is a computed property which provides the error below.
private var pagingOptions: PagingOptions {
let options = PagingOptions()
options.menuHeight = 0 <-- Error here
return options
}
PageView(options: pagingOptions, items: items, selectedIndex: $selectedIndex) { item in
//
}
Error: "Cannot assign to property: 'menuHeight' is a get-only property"
How can I completely hide the menu?
The text was updated successfully, but these errors were encountered:
trevordevs
changed the title
How can I hide/customize menu in SwiftUI?
Cannot customize options (SwiftUI)
Jan 2, 2023
I am trying to hide the menu, and with little luck, cannot find any options other than the menuHeight, however, this is a computed property which provides the error below.
Error: "Cannot assign to property: 'menuHeight' is a get-only property"
How can I completely hide the menu?
The text was updated successfully, but these errors were encountered: