redth-org / BTProgressHUD

Port to Xamarin.iOS of the SVProgressHUD
Other
118 stars 64 forks source link

Spinner with transparent background #109

Closed acaliaro closed 4 months ago

acaliaro commented 4 months ago

I would like to have the spinner (with Show method) without the background. I try to set Clear color but the result is a black square behind the spinner

❓ Expected behavior Only the spinner visible

🪜 Reproduction steps ProgressHUDAppearance.HudBackgroundColor = UIColor.Clear;

🛠 Configuration Used the demo in this repo 📦 Package Version: 2.1.0 📱 iOS Version: 17.3 iphone 12

Cheesebaron commented 4 months ago

I will have a look and see what can be done about this.

acaliaro commented 4 months ago

I know that is a OOT, but if you can take a look also to

                ProgressHUDAppearance.RingRadius = 30f;

Because the ring is always the same size (I think this property is used to have a bigger spinner, correct?)

Cheesebaron commented 4 months ago

The RingRadius is for when you are showing determinate progress and changing its size works:

image

You use the API: BTProgressHUD.Show("Hello!", progress); for this one.

acaliaro commented 4 months ago

The RingRadius is for when you are showing determinate progress and changing its size works:

image

You use the API: BTProgressHUD.Show("Hello!", progress); for this one.

Thanks @Cheesebaron it works! I have not understand about the ring size. It does not change if I use "Show" method? What should I use?

acaliaro commented 4 months ago

ok, I have understand about the "size". Is not possible to modify the size of the spinner also if progress is not used?

Cheesebaron commented 4 months ago

Yeah, it would need some extra code to modify its bounds, even so I am not sure if it would make the UIActivityIndicator bigger. Can you make a new issue for this describing the desired effect you want?