A non gesture blocking, non clipping by default custom scroll view implementation with example code.
This is an attempt for a custom scroll view in SwiftUI that will not block other gestures or be blocked by other gestures unless specified with a view modifier. I tried to implement some of the other scroll view features like a scroll view reader and proxy as well.
Ideally I'd like to find a way to use this view together with the regular ScrollView reader but I wasn't able to figure out the internals of it to make it work.
It does work for my purposes but could probably be extended and made more generic and simplified.
Related questions and answer on Stack Overflow
Similar to the drag and drop capabilities that SwiftUI provides but only meant for within the app. Allowing views to be dragged and dropped with drop detection and an attached dragged object.
Allows to align the size of the frames of multiple views from multiple stacks in rows and cols.
Aligns the offset of multiple views organized in rows and cols, aligning both axes.
Both allow the positioning of a view in another coordinate system. Relative position is using an internal position modifier, relative offset using an internal offset modifier.
link |
Stars: 5 |
Last commit: 14 hours ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics