Comments (11)
PKHUD.sharedHUD.effect = nil
if let frameView = PKHUD.sharedHUD.contentView.superview?.superview as? UIVisualEffectView {
frameView.backgroundColor = nil
}
from pkhud.
This is not an issue but a simple question. You should use other platforms like StackOverflow
By the way you can control the background of the HUD or of the contentView as following.
PKHUD.sharedHUD.contentView.backgroundColor = YOUR_COLOR
// Remove the HUD background
PKHUD.sharedHUD.dimsBackground = false
And you can easily achieve something like this
from pkhud.
i meant the progress background to be alpha , not my view
from pkhud.
The progress_activity is an image with Render as set to Default so you can't change the properties of that image. You can provide your image and change the imageView.image like
let progressView = PKHUDProgressView()
self.progressView.imageView.image = YOUR_IMAGE
@pkluz maybe would be better to add a constructor for custom images and set Render as to Template.
from pkhud.
i will try that ;)
from pkhud.
How to get absolutely transparent HUD?
Now I should do this dummed code:
PKHUD.sharedHUD.contentView = PKHUDRotatingImageView(image: UIImage(asset: .Preloader))
// Make HUD is absolutely transparent
for view in (PKHUD.sharedHUD.contentView.superview?.superview?.subviews)! {
view.backgroundColor = UIColor.clearColor()
view.alpha = 0
}
for view in (PKHUD.sharedHUD.contentView.superview?.subviews)! {
view.alpha = 0
}
PKHUD.sharedHUD.contentView.alpha = 1
PKHUD.sharedHUD.dimsBackground = false
PKHUD.sharedHUD.show()
from pkhud.
PKHUD.sharedHUD.contentView = PKHUDRotatingImageView(image: UIImage(asset: .Preloader))
image: UIImage(asset: .Progress))
Type of expression is ambiguous without more context
from pkhud.
PKHUD.sharedHUD.contentView = PKHUDRotatingImageView(image: UIImage(named: "ic_loader"))
PKHUD.sharedHUD.contentView.backgroundColor = UIColor.clear
PKHUD.sharedHUD.dimsBackground = false
PKHUD.sharedHUD.show()
Clear color not working here. Why?
from pkhud.
Clear color problem here also.
IOS 11 - xcode 9
from pkhud.
try codes below
PKHUD.sharedHUD.contentView = CustomView()
PKHUD.sharedHUD.contentView.backgroundColor = .clear
PKHUD.sharedHUD.effect = nil
PKHUD.sharedHUD.dimsBackground = false
PKHUD.sharedHUD.show()
above codes are my clear background Color Solution!
from pkhud.
There is no any way from this thread which work properly with current version of library unfortunately :(
Desirable picture:
can not be reached :(
from pkhud.
Related Issues (20)
- Cannot pass AppStoreConnect Upload in 5.2.1 HOT 1
- Problem with CoreMotion causes UI API called on a background thread, IPhone X series HOT 5
- Decrease size of Progress bar not label content
- Fix travis
- Cocoapod release not updated version 5.3.0 HOT 2
- Build Failed Swift 4.2 carthage 0.33.0 OSX 10.14.5
- Cant use macOS ? HOT 2
- Support for multiple windows on iPadOS
- couldn't find Assets.car in bundle with identifier HOT 1
- 'PKHUD/PKHUD-Swift.h' file not found
- broken, broken
- Support for SwiftUI needed HOT 2
- Too long type-check HOT 1
- Support for Swift Package Manager(SPM) needed
- customView(view: UIView),backgroundColor issue
- progress can not work HOT 1
- how to change the progress frame , I can not find it
- Not working on SwiftUI sheet (modal) HOT 1
- dimsBackground is false,but PKHUD.sharedHUD not hidden container.backgroundView
- PKHUD.show(onView:) is crashing with iOS 15 HOT 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkhud.