Transparent background of webView Swift 4 [duplicate] - swift

This question already has answers here:
cocoa: How to make background transparent webView?
(2 answers)
macOS WKWebView background transparency
(2 answers)
Closed 5 years ago.
It is possible to change webView background to transparent color?
Using: Swift 4, Xcode 9.2, making a "MenuBar app." for mac osx.
screen

Related

Swift - Put Red Dot on iPhone App Icon [duplicate]

This question already has answers here:
Badge on App Icon in Iphone App
(2 answers)
Closed 6 years ago.
Any ideas how to apply a red dot to the iPhone App icon - like the Mail or Messages' Icon with the number of unread messages in it?
Try this:
Swift 2:
UIApplication.sharedApplication().applicationIconBadgeNumber = 1// or you value
Hope this helps!

iOS 7: Is it possible to make UIView's background transparent to show the blurred background? [duplicate]

This question already has answers here:
How to set all the backgrounds transparent so that the home screen could be seen?
(2 answers)
Closed 9 years ago.
I ask this question after seeing apps like Reminders or Safari's tab view using this.
As you can see there is a translucency between the app and the home screen. Is there anyway to achieve this in iOS 7? Is it a private api?
No such luck sadly - it's a private API.

iOS 7 like semi transparent blurred view [duplicate]

This question already has answers here:
How can I produce an effect similar to the iOS 7 blur view?
(12 answers)
iOS 7 dynamic blur effect like in Control Center
(6 answers)
Closed 9 years ago.
I'm trying to put a semi transparent image with blur effect behind my main view, similar to how Apple is doing in iOS 7. What is the best, most efficient way of going about this sort of effect?
This is the best one I've come across: FXBlurView

Bringing application to foreground on shake in iPhone [duplicate]

This question already has answers here:
Bring App to foreground
(2 answers)
Closed 9 years ago.
The application is running in background. I want that when someone shakes IPhone the application should come to foreground from background.
Is there any way to do this programmatically.
Thanks
No, this caanot happen. You dont have any control when your app is in BG.

How to lock the iPhone screen programmatically? [duplicate]

This question already has answers here:
Programmatically lock and unlock iPhone screen
(8 answers)
Closed 9 years ago.
How can my iOS program lock the iPhone's screen?
You can't. Why do you want to do this?