

Designer and researcher enthusiastic about design & tech that motivates and empowers, winter sports enthusiast. My favourite colour is orange.
…iew and someone wants to add another constraints to it’s size we get conflicting constraints error. Do not define x, y, width or height inside a custom view. That is the responsibility of the superview. Instead, use a property called intrinsicContentSize. In our custom view the intrinsic size is being calculated from constraints to contentView, which is a UIImageView, but if our content size depends on some internal criteria use intrinsicContentSize.
Instead of returning functions that render a component, prefer to return functions that return the necessary information to render a component. In the first we are instructing what to do(render precisely this thing), while in the second we’re j…