Commit 833f2fe7 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

UI: round avatar corners

This patch fix avatar appearance when after switching view image
could have square corners.

Change-Id: Ie9bb0c22a68514cefeb79e2cb962ff42811d8c4c
parent 11fbd32a
......@@ -26,6 +26,12 @@
<constraint firstAttribute="height" constant="100" id="2mb-uU-dHb"/>
<constraint firstAttribute="width" constant="100" id="WSb-4Z-9t2"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="roundedCorners" value="YES"/>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="50"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="Name" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="oQJ-jT-wTv">
<rect key="frame" x="20" y="200" width="335" height="27"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment