Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I hide the menu? (SwiftUI) #654

Closed
trevordevs opened this issue Jan 2, 2023 · 0 comments
Closed

How can I hide the menu? (SwiftUI) #654

trevordevs opened this issue Jan 2, 2023 · 0 comments

Comments

@trevordevs
Copy link

trevordevs commented 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.

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?

@trevordevs trevordevs changed the title How can I hide/customize menu in SwiftUI? Cannot customize options (SwiftUI) Jan 2, 2023
@trevordevs trevordevs changed the title Cannot customize options (SwiftUI) How can I hide the menu? (SwiftUI) Jan 2, 2023
@trevordevs trevordevs reopened this Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant