In UIView , docs states that you must override requiresConstraintBasedLayout to return true in your user view if restrictions are required to work.
UIView
requiresConstraintBasedLayout
true
How do you do this using Swift 3?
Use the following syntax to override the recipient:
override open class var requiresConstraintBasedLayout: Bool { get { return true } }
Source: https://habr.com/ru/post/1015364/More articles:How to clone an array of Javascript objects? - javascriptMaven build Compilation error: failed to fulfill the goal org.apache.maven.plugins: maven-compiler-plugin: 3.1: compile (by default compilation) in the Maven project - javaHow to use EF DbFirst with MySQL in .NET Core? - mysqlWhat happens when my app no longer supports older iOS - ioshttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1015363/declaring-variable-with-name-this-inside-lambda-inside-parentheses-leads-to-different-results-on-3-different-compilers&usg=ALkJrhj0Lzk2P0l9ItNRVGD__XH29L4HeQChrome auto close tab - androidQuery Proposal Request Object JPA Criteria IN - javaWhat is the right way to imitate state closure in Haskell - closuresКак отладить библиотечный модуль Android в Android Studio? - javaHow can I handle custom plugins in my types? - typesAll Articles