iOS tips: How to lock UI element properties in storyboard iOS ?

Suppose if you want to restrict somebody working on the same project to change the properties of a UI component in storyboard, or if you want to restrict yourself to change the properties by mistake while dealing with the storyboards, wouldn’t that be awesome?? Yes, you can do this in storyboard. I will tell you how.
  1. Click on the UI element you want to lock.
  2. Click on the Identity inspector (check the image above).
  3. Under the Document section, click on the Lock drop down menu and select what is required. Every option is self explanatory .
Document lock options
  • Inherited /Nothing is the default option selected. Here it will use its superviews option.
  • All Properties will lock all the properties so that all the properties in the attributes inspector remains unchangeable.
Lock icon

If you enjoyed reading this post, please share and give some clapps so others can find it 👏👏👏👏👏 !!!!

You can follow me on Medium for fresh articles. Also, connect with me on LinkedIn. Also follow my facebook page on swift: iosswiftblogger.



iOS and tvOS developer, dreamer, photographer 🤨

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store