{"id":5121,"date":"2014-03-30T19:02:56","date_gmt":"2014-03-30T19:02:56","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/create-a-circle-in-xib-for-interface-builder-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:02:56","modified_gmt":"2014-03-30T19:02:56","slug":"create-a-circle-in-xib-for-interface-builder-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/create-a-circle-in-xib-for-interface-builder-collection-of-common-programming-errors\/","title":{"rendered":"Create a circle in xib for interface builder-Collection of common programming errors"},"content":{"rendered":"<p>There isn&#8217;t per-se, but you can achieve this effect using a view&#8217;s corner radius. This is performance-heavy however, so you should test on different devices and see the performance implications of this.<\/p>\n<p>Xcode provides a &#8220;User Defined Runtime Attributes&#8221; section:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/Css8U.png\" \/><\/p>\n<p>The format of this is key path and value.<\/p>\n<p>You could set the <code>layer.cornerRadius<\/code> keypath to half the width\/height of the view. To help with performance, you can set the <code>layer.shouldRasterize<\/code> key path to <code>YES<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There isn&#8217;t per-se, but you can achieve this effect using a view&#8217;s corner radius. This is performance-heavy however, so you should test on different devices and see the performance implications of this. Xcode provides a &#8220;User Defined Runtime Attributes&#8221; section: The format of this is key path and value. You could set the layer.cornerRadius keypath [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5121","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5121"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5121\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}