Skip to content

Constraining HPageView width to its child view #16

@interior-night

Description

@interior-night

In the following scenario I can see all three pages (ImageView) at once and the pages even slide behind "MyLabel".
Is there a way to stop that from happening?

HStack{
    Text("MyLabel: ")
    HPageView(selectedPage: $pageIndex) {
        Image1View()
        Image2View()
        Image3View()
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions