s# Drag to Select for Scrollable LazyVGrid in SwiftUI
Based off Itsuki
This is based off Itsuki's article on creating a custom lazyvgrid that allows the user to select multiple views at once. This could be handy for an app that needs to allow a user to select multiple items on the screen.
Link to article: https://blog.stackademic.com/swiftui-implement-drag-to-select-for-scrollable-lazyvgrid-be58136aefdc
- fork the project or download the .zip
- open project in XCode v15 or later (earlier versions may or may not compile correctly)
- run in simulator
If you find a bug or would like to submit an improvement to this project, please submit an issue using the issues tab above. If you would like to submit a PR with a fix, reference the issue you created.
At this time, the code is running as expected.
Check out Itsuki's other articles on Medium
If you're feeling generous, buy me a coffee or beer 😎 https://www.buymeacoffee.com/scottcrowder