Closed n1mda closed 3 years ago
func centerPulsator() { iconView.layer.layoutIfNeeded() pulsator.position = iconView.layer.position iconView.setNeedsLayout() } ?
@n1mda currently experiencing the same issue. Any luck with this?
None yet :(
Axel Möller
On 28 October 2016 at 20:14:46, DeepAnchor (notifications@github.com) wrote:
@n1mda https://github.com/n1mda currently experiencing the same issue. Any luck with this?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shu223/Pulsator/issues/7#issuecomment-256990725, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB6Cmgmv2J18ZDAyJ4IqSlHQ2uxYHXUks5q4juWgaJpZM4Jps68 .
Seems like this hasn't changed since the question was asked. Moving the code to viewDidAppear worked for me.
Pulsator is not visible until I close the app and reopen it (causing viewDidLayoutSubviews to trigger). No matter if I call centerPulsator(), force layouting subviews upon load etc. What could be the problem?