v3 Is out now!
Published on August 7, 2022 by Lucas Zischka
I've spent the last 36 days rewriting the BottomSheet full time. I changed the project structure, cleaned up and documented the code, and made it SwiftLint conformant.
Why? So that I, but also you, can add features and make changes more easily in the future. Because the code before it was difficult to understand because it was not commented. Although it is still very complex, you can now familiarize yourself with it much more quickly.
Oh and while I was rewriting the BottomSheet I fixed countless bugs and most importantly added features.
But in my opinion the best improvement is that everything is now done via view modifers. This makes the BottomSheet a much better match for SwiftUI.
I am also very proud of the dynamic size of the bottom sheet. It was a lot of work, but now you have the option to have a BottomSheet of the right size without specifying a fixed size.
Well, and to implement this feature, I had to completely rewrite the BottomSheetPosition. Although I have even bigger plans for it...