orbit-swiftui icon indicating copy to clipboard operation
orbit-swiftui copied to clipboard

Allow `HorizontalScroll` HStack to be applied with custom modifiers

Open PavelHolec opened this issue 1 year ago • 0 comments

To allow items that have a global effect (elevation etc), we need to be able to modify the HStack that is used inside the HorizontalScroll - or, to allow call site to provide this stack wrapper.

example:

HorizontalScroll(..) {
   ForEach(...) {
      item
   }
} { content in
   HStack(..) {
      content
   }
   .clipShape(..)
   .drawingGroup()
   .elevation(..)
}

PavelHolec avatar Jun 15 '23 09:06 PavelHolec