How to make the effect of a glowing stroke in iOS, like the one that is used when a personal hot spot is turned on?

I would like to use this effect (not necessarily blue) when I synchronize my application on my server. I searched the interwebs and apple dev forums, but to no avail.

Glowing top Bar when Hotspot is enabled.

+4
source share
2 answers

Another way to do this (although it gives you very little control over what the dual status bar looks like) is to simulate an audio session. See the next question and answer: an instance of SBStatusBarController

+1
source

There is no way to do it beautifully, as Apple does it. There are two ways to do something close to this:

  • You can try setting the style of the status bar to UIStatusBarStyleBlackTranslucent and asking for a bit of background images in the status bar that will slightly affect the color.
  • You can view the code at the following links: http://www.cocoabyss.com/uikit/custom-status-bar-ios/ and https://github.com/myell0w/MTStatusBarOverlay/ , these two code examples implement the text above the line a state that deceives the user. The achieved result can be pretty close to what you show in the screenshot.
0
source

All Articles