sparrowcode / AlertKit

Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.
https://sparrowcode.io/frameworks
MIT License
2.3k stars 130 forks source link

Is it possible that we can display things other than images inside the alert? #36

Closed konekoya closed 2 years ago

konekoya commented 2 years ago

Hi @ivanvorobei

I'm trying to use this SPAlert to display a loading indicator, but for now, it only accepts a couple of default presets and a custom UIImage. Is there any changes that we could pass something like CAShapeLayer in it? For example https://github.com/relatedcode/ProgressHUD/blob/master/ProgressHUD/Sources/ProgressHUD.swift#L743-L785

I know I can probably address this with a custom loading image. But with so many different screen resolutions, I'm not sure if it's a good idea to go about :(

Thanks for creating and publishing OSS like this :)

ivanvorobei commented 2 years ago

Hello!

If need, I can add indicator preset

konekoya commented 2 years ago

If need, I can add indicator preset

That would be really cool 👍 Can't wait to see that!

ivanvorobei commented 2 years ago

Sorry for big delay. New feature added in 3.5.0 version, called preset .spinner. Check readme for me details please.