{"id":79,"date":"2018-01-01T03:38:53","date_gmt":"2018-01-01T03:38:53","guid":{"rendered":"https:\/\/www.nleby.com\/longform\/?p=79"},"modified":"2018-12-02T03:11:08","modified_gmt":"2018-12-02T03:11:08","slug":"iphone-x","status":"publish","type":"post","link":"https:\/\/www.nleby.com\/longform\/2018\/01\/01\/iphone-x\/","title":{"rendered":"iPhone X, iOS11, and P3 Colors"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Some callouts:<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Search bar changing height is iOS11 revealed some skeletons in our closet, primarily around trying to maintain opaque navigation and tab bars which led to layout issues. I also explored moving the search bar to the new searchController property on navigation controller, but the business ultimately wanted to maintain the title view approach\/look. Search controller is nice though because it has support for large title, hiding when scrolling, etc.<\/li><li>Supporting iPhone X wasn&#8217;t too much effort because of my previous enforcement of using native views\/controls and auto layout.<\/li><li>For P3 colors we changed obvious things at first: launch screen, app icon and primary brand colors. We also made a conscious choice to not make every brand color P3, like the typography saying &#8220;If everything is bold, nothing is bold&#8221; \u2013 and we wanted certain color to stand out. P3 conversion from a code perspective is simple, but from a conversion standpoint I still am not sure the proper method.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"1120\" src=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/01\/iphonex-1.png\" alt=\"\" class=\"wp-image-106\" srcset=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/01\/iphonex-1.png 600w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/01\/iphonex-1-161x300.png 161w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/01\/iphonex-1-549x1024.png 549w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Converting Brand colors to P3 (view image below on P3 screen for accurate reproduction)<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><img loading=\"lazy\" decoding=\"async\" width=\"1125\" height=\"1298\" src=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/01\/colors.png\" alt=\"\" class=\"wp-image-107\" srcset=\"https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/01\/colors.png 1125w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/01\/colors-260x300.png 260w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/01\/colors-768x886.png 768w, https:\/\/www.nleby.com\/longform\/wp-content\/uploads\/2018\/01\/colors-888x1024.png 888w\" sizes=\"auto, (max-width: 1125px) 100vw, 1125px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Some callouts: Search bar changing height is iOS11 revealed some skeletons in our closet, primarily around trying to maintain opaque navigation and tab bars which led to layout issues. I&hellip;<\/p>\n<p> <a class=\"more-link\" href=\"https:\/\/www.nleby.com\/longform\/2018\/01\/01\/iphone-x\/\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-79","post","type-post","status-publish","format-standard","category-ulta"],"_links":{"self":[{"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":7,"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":291,"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/posts\/79\/revisions\/291"}],"wp:attachment":[{"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nleby.com\/longform\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}