Anton Platonov
Anton Platonov

Reputation: 389

Disable completed items in xcode 8

I am building a UIView with multiple items on top of each other. How can I disable interaction with the elements I have already placed and used constraints on in xcode 8 so that I can be working on the other elements on top of them and not mess things up. Thanks

Upvotes: 0

Views: 15

Answers (1)

shallowThought
shallowThought

Reputation: 19600

You can use the isUserInteractionEnabledproperty on UIView:

let view = UIView()
view.isUserInteractionEnabled = false

Upvotes: 2

Related Questions