Skip to content
New issue

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

Pulsator animaton does not appear #47

Closed
minaMagedNaeem opened this issue Dec 13, 2018 · 4 comments
Closed

Pulsator animaton does not appear #47

minaMagedNaeem opened this issue Dec 13, 2018 · 4 comments

Comments

@minaMagedNaeem
Copy link

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
}`

@minaMagedNaeem
Copy link
Author

I fixed it, it just needed some alteration in pulsator's properties.

@ZkHaider
Copy link

What were the alterations?

@minaMagedNaeem
Copy link
Author

pulsator.radius = view.bound.height / 2 + 20

@fukemy
Copy link

fukemy commented Jan 21, 2021

still not appear for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants