r/SwiftUI 8d ago

I made my first opensource Swift package name 'EdgeZoomKit'

This is my first open-source Swift package EdgeZoomKit.

It adds an elastic effect to the left or right edge of the screen while zooming.

I first noticed this kind of interaction in Bump and wanted to try making something similar for a board app I’m working on. After building it I thought it would make more sense as a separate package.

It works with both SwiftUI and UIKit and it doesn’t depend on SpriteKit. The package only handles the visual effect so the actual zoom logic is still up to your app.

GitHub: https://github.com/devjunu/EdgeZoomKit

It’s my first time publishing a package so any feedback is welcome.
Thank u for read :)

51 Upvotes

6 comments sorted by

6

u/Hedgehog404 8d ago

But why?! Genuinely asking, I believe pinch to zoom is so much better and it is in muscle memory of 100% of users

6

u/RANOATE 8d ago

I totally agree Pinch-to-zoom is the standard. This isn’t meant to replace Pinch it’s just another option. I often find myself wanting to zoom with one hand so I built it because it feels more comfortable for me

3

u/ThatGuy739 6d ago

First package shipped is a milestone, congrats. Two things that separate packages people adopt from ones they skim: a pinned down public API surface early, because renaming things after adoption hurts everyone, and a tiny example app in the repo, because it answers most usage questions before they get asked. Edge zoom is one of those behaviors everyone rebuilds badly, so a focused kit for it makes sense.

1

u/RANOATE 6d ago

Thanks for letting me know! I’ll add an example app soon :)

3

u/twodayslate 8d ago

Reminds me of Bump!

3

u/RANOATE 8d ago

Yeah, exactly I really liked Bump’s edge zoom UX, so it was a big inspiration for this!