Git Product home page Git Product logo

Comments (11)

MaxWeaver avatar MaxWeaver commented on June 15, 2024 2
    PKHUD.sharedHUD.effect = nil
    if let frameView = PKHUD.sharedHUD.contentView.superview?.superview as? UIVisualEffectView {
        frameView.backgroundColor = nil
    }

from pkhud.

PGLongo avatar PGLongo commented on June 15, 2024 1

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

simulator screen shot 01 mar 2016 20 52 49
simulator screen shot 01 mar 2016 20 52 40
simulator screen shot 01 mar 2016 20 52 28

from pkhud.

ahmedsafadii avatar ahmedsafadii commented on June 15, 2024

i meant the progress background to be alpha , not my view

from pkhud.

PGLongo avatar PGLongo commented on June 15, 2024

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.

ahmedsafadii avatar ahmedsafadii commented on June 15, 2024

i will try that ;)

from pkhud.

VMavrin avatar VMavrin commented on June 15, 2024

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.

ahmedsafadii avatar ahmedsafadii commented on June 15, 2024

PKHUD.sharedHUD.contentView = PKHUDRotatingImageView(image: UIImage(asset: .Preloader))

image: UIImage(asset: .Progress))

Type of expression is ambiguous without more context

from pkhud.

matghazaryan avatar matghazaryan commented on June 15, 2024

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.

shashijangir avatar shashijangir commented on June 15, 2024

Clear color problem here also.
IOS 11 - xcode 9

from pkhud.

ian123nai321 avatar ian123nai321 commented on June 15, 2024

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.

Speakus avatar Speakus commented on June 15, 2024

There is no any way from this thread which work properly with current version of library unfortunately :(
Desirable picture:
image
can not be reached :(

from pkhud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.