I’m not sure how to do that on my computer but basically, I have this screen that contains a basic UIView which is in red, and inside is a UITextView which has the following constraints in relation to the UIView. I was wondering if it would be possible for me to find a way to programmatically adjust the bottom constraint which I have highlighted so that when I activate the keyboard the constraint value will increase and then when I deactivate the keyboard the constraint will go back to what it originally was. I have already set up the texViewDidBeginEditing functions.
So I was thinking I could implement code in these functions using the NSLayoutConstraint. However, I do not really know how these work. (PS. the stack_view and tile_view are just temp names I have made when I linked the UIView and the UITextView to my swift file as @IBOutlet weak variables.)
But this doesn’t seem to change anything when I run the program and I think it has something to do with the fact I haven’t initialized the items correctly in the NSLayoutConstraint. If you have any idea on how I could potentially fix this so the constraints do update it should work! Hope this makes any sense