We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
my code: ` let pulsator = Pulsator() override func viewDidLoad() { super.viewDidLoad() shoppieImage.layer.superlayer!.insertSublayer(pulsator, below: shoppieImage.layer) pulsator.numPulse = 1 pulsator.animationDuration = 1 pulsator.repeatCount = 0 pulsator.pulseInterval = 0.25 pulsator.backgroundColor = ShopXStyle.yellowColor.cgColor pulsator.radius = 200 pulsator.name = "pulsator" pulsator.start() }
override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() view.layer.layoutIfNeeded() pulsator.position = shoppieImage.center }`
The text was updated successfully, but these errors were encountered:
I fixed it, it just needed some alteration in pulsator's properties.
Sorry, something went wrong.
What were the alterations?
pulsator.radius = view.bound.height / 2 + 20
still not appear for me
No branches or pull requests
my code:
`
let pulsator = Pulsator()
override func viewDidLoad() {
super.viewDidLoad()
shoppieImage.layer.superlayer!.insertSublayer(pulsator, below: shoppieImage.layer)
pulsator.numPulse = 1
pulsator.animationDuration = 1
pulsator.repeatCount = 0
pulsator.pulseInterval = 0.25
pulsator.backgroundColor = ShopXStyle.yellowColor.cgColor
pulsator.radius = 200
pulsator.name = "pulsator"
pulsator.start()
}
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
view.layer.layoutIfNeeded()
pulsator.position = shoppieImage.center
}`
The text was updated successfully, but these errors were encountered: