JonasGessner / JGProgressHUD

An elegant and simple progress HUD for iOS and tvOS, compatible with Swift and ObjC.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot recreate the demo style

kristofkalai opened this issue · comments

I would like to recreate exactly this type of animation: gif from the repository. I tried out the example project, and I analized the library (as far as I can, since my main language is swift), but in every case the label (which has a text "Loading" on the upper gif) has a white or black text color. I tracked back this problem to this line: the given codeline. Can we achieve the style on the upper gif with this library? If yes, then how? Any code snippet or advice is highly appreciated, even in Objective-C, I can transform it.

(The main part of the desired style is that it should has a label which is masked out of the blur view, and the label should show the background of the hud.)

You need to enable the vibrancyEnabled flag to get that style. The code used to create the demo gif is here: https://github.com/JonasGessner/JGProgressHUD/blob/master/Examples/JGProgressHUD-Tests-Swift/ViewController.swift#L89

Thank you very much, it works!