/DragToSelect

https://blog.stackademic.com/swiftui-implement-drag-to-select-for-scrollable-lazyvgrid-be58136aefdc

Primary LanguageSwiftMIT LicenseMIT

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.

Article Link

Link to article: https://blog.stackademic.com/swiftui-implement-drag-to-select-for-scrollable-lazyvgrid-be58136aefdc

How to install

  1. fork the project or download the .zip
  2. open project in XCode v15 or later (earlier versions may or may not compile correctly)
  3. run in simulator

Find a bug?

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.

Known Issues (work in progress)

At this time, the code is running as expected.

Like this project?

Check out Itsuki's other articles on Medium

Support my work

If you're feeling generous, buy me a coffee or beer 😎 https://www.buymeacoffee.com/scottcrowder