Skip to content

CustomSplitter disappears when constraints is set #30

@fenixkim

Description

@fenixkim

When I add .constraints(minPFraction:minSFraction) the CustomSplitter disappears. Which should not happen.

CleanShot 2023-11-29 at 10 07 59

Sample code:

let layout0 = demo.holders[0].layout
let hide0 = demo.holders[0].hide
let styling = SplitStyling(visibleThickness: 20)
Split(
    primary: { Color.green },
    secondary: { Color.red }
)
.splitter { DemoSplitter(layout: layout0, hide: hide0, styling: styling) }
.layout(layout0)
.hide(hide0)
.constraints(minPFraction: 0.2, minSFraction: 0.2, dragToHideS: true)

Is there something I am doing wrong or how can I solve it?

Thanks in advance

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