stevengharris / SplitView

A flexible way to split SwiftUI views with a draggable splitter
MIT License
146 stars 17 forks source link

Text and/or systemImage in splitter only possible in customsplitviews? #38

Closed eduo closed 3 months ago

eduo commented 4 months ago

Maybe a simple question but for the default splitter the only styling available is color and width? I see the custom splitter having symbols as well but they don't seem to be available in the default one.

eduo commented 3 months ago

I'll answer to myself: Default splitters are the bar and invisible. Splitters with different designs can be made and submitted for inclusion, but customizing the default splitters is not currently built-in

stevengharris commented 3 months ago

Yes, you should be able to use pretty much any view you create as a splitter by conforming to SplitDivider and observing layout, hide, and styling as needed.