|
Swift, Storyboards Is it possible to detect if the user has change the position of a window? I know how to get the position of the window in the viewDidLoad for instance. But I do not know how to know if the position has changed. let position = self.view.window!.frame.origin |
|
You can listen for various notifications such as If your window has a delegate, you can implement one of the delegate methods to receive those notifications. |
|
Thank you. I know how to do a regular notification when for instance the user clicks a button, but I do not how to apply it here when the user changes the position of a window. // 1-send the notification: // 2-viewDidLoad of the receiving page: // 3-Outside viewDidLoad |
|
You need to implement the For instance, in your
and then add
|
|
SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's all new Paywall Editor allow you to remotely configure your paywall view without any code changes or app updates.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.