redth-org / BTProgressHUD

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

Removed iOS 6 Support, update Error & Success (Added Image), A bit of code clean-up #83

Closed KevinvdBurg closed 3 years ago

KevinvdBurg commented 3 years ago

:sparkles: What kind of change does this PR introduce? (Bug fix, feature, docs update...)

:arrow_heading_down: What is the current behavior?

:new: What is the new behavior (if this is a feature change)?

:boom: Does this PR introduce a breaking change?

:bug: Recommendations for testing

:memo: Links to relevant issues/docs

:thinking: Checklist before submitting

Cheesebaron commented 3 years ago

Ah, the dreaded image issue. When you bundle images in a library, you need to tell where they can be found. This is what the BTProgressHud.targets file are for. If you moved stuff around, you might need to adjust the paths there too.

See: https://github.com/redth-org/BTProgressHUD/blob/master/assets/BTProgressHud.targets

I will have a look and see what goes wrong with the images. At a glance, this PR looks good to me :)

KevinvdBurg commented 3 years ago

Ah ok! I have a private nuget package and I solved it by using a Base64 string and converting that to an UIImage! 🎉 No more issues with loading from files!

Screenshot 2021-06-18 at 14 11 08
KevinvdBurg commented 3 years ago

@Cheesebaron if you want me to move all images to this Base64 format let me know, it wil make the whole image problem obsolete. Otherwise let me know I could test ShowSuccessWithStatus, ShowErrorWithStatus and ShowInfoWithStatus. I'm not comfortable merging this PR without seeing it in action beforehand. 🙈

KevinvdBurg commented 3 years ago

@Cheesebaron I convert the images to Base64 icons's and added the different image styles. I'm not gonna add extra features to this PR.

Can you check if every thing is working at your end, if so the version could be upped to 1.4 because there are some breaking changes

Cheesebaron commented 3 years ago

@KevinvdBurg thanks. Will have a look asap.

Still not 100% sure about the base64 images are a good way to embed images.

KevinvdBurg commented 3 years ago

I 100% agree that it is not an ideal solution but it removes a lot of headaches trying to embed images in an Xamarin Nuget package.

I would rather have a custom BTProgressHUD xcassets so the images could be a vector and have a darkmode counterpart. But I have yet to find a solution for this

Cheesebaron commented 3 years ago

I've just given it a spin. Looks good to me. I've made the sample working on phones, we have so many buttons and it didn't scroll.