-1

I want to move a UIView up, when a textField is tapped. I already created the action of my textField. Is it possible to use offset with storyboard?

@IBAction func didBeginMove(_ sender: CurrencyField) {
    
}
bn 41
  • 21
  • 5
  • I think, this question is duplicate https://stackoverflow.com/questions/25693130/move-textfield-when-keyboard-appears-swift – goat_herd Aug 11 '20 at 09:01

1 Answers1

0

You can do it in many ways

like

yourView.transform = CGAffineTransform(translationX: 10, y: 10)

or add top/bottom constrain or this view and change it

yourViewSpaceToTop.constant += 20
Kstin
  • 556
  • 1
  • 2
  • 17