-
-
Save Pasanpr/bb0a6b99e9eb43f68ce049476784fe9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In viewDidLoad() | |
NotificationCenter.default.addObserver(self, selector: #selector(ViewController.keyboardWillHide(_:)), name: .UIKeyboardWillHide, object: nil) | |
func keyboardWillHide(_ notification: Notification) { | |
textFieldBottomConstraint.constant = 40 | |
UIView.animate(withDuration: 0.8) { | |
self.view.layoutIfNeeded() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, How are you Pasan i am Mohammed Arnauti one of your students, thank you for providing us with useful and rich explanations in Tiraeus.
I have a question to create an application but I have encountered an obstacle and i need your help, the idea of application is about structural analysis in Civil Engineering (my studies in college) The forces and loads on the beam, and the beam have different lengths. The question is:
how can I to know the Compiler for the length for what i need, in another meaning I want to create a ruler in the interface where I can put forces at different distances