{"id":36189,"date":"2022-06-10T17:02:45","date_gmt":"2022-06-10T21:02:45","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=36189"},"modified":"2025-10-29T09:38:50","modified_gmt":"2025-10-29T13:38:50","slug":"formatstyles-in-ios-16-and-macos-13","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/06\/10\/formatstyles-in-ios-16-and-macos-13\/","title":{"rendered":"FormatStyles in iOS 16 and macOS 13"},"content":{"rendered":"<p><a href=\"https:\/\/ampersandsoftworks.com\/posts\/iOS-16-formatstyle\/index.html\">Brett Ohland<\/a>:<\/p>\n<blockquote cite=\"https:\/\/ampersandsoftworks.com\/posts\/iOS-16-formatstyle\/index.html\"><p>The yearly developer conference was firing on all cylinders this year, with some nice additions and one big fix on the <code>FormatStyle<\/code> front.<\/p><p>[&#8230;]<\/p><p>We now have an API for the byte count format style on top of the Measurement framework when using the <code>UnitInformationStorage<\/code> unit.<\/p><p>[&#8230;]<\/p><p>iOS 16 introduces the new <code>Duration<\/code> unit, which is purpose built to deal with very accurate time measurements. There&rsquo;s two new styles to support it.<\/p><p>[&#8230;]<\/p><p>There&rsquo;s a new, and surprisingly deep, format style for URLs[&#8230;]<\/p><p>[&#8230;]<\/p><p>There&rsquo;s a couple of significant changes to the Verbatim style.<\/p><\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/03\/22\/swift-formatstyle-deep-dive\/\">Swift FormatStyle Deep Dive<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/01\/26\/swift-foundation-formatter-improvements\/\">Swift Foundation Formatter Improvements<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Brett Ohland: The yearly developer conference was firing on all cylinders this year, with some nice additions and one big fix on the FormatStyle front.[&#8230;]We now have an API for the byte count format style on top of the Measurement framework when using the UnitInformationStorage unit.[&#8230;]iOS 16 introduces the new Duration unit, which is purpose [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2022-06-10T21:02:47Z","apple_news_api_id":"345bea00-3293-4e20-bb28-e038a3a5a061","apple_news_api_modified_at":"2025-10-29T13:38:53Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/ANFvqADKTTiC7KOA4o6WgYQ","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[69,31,1667,30,2223,568,71,2854,901],"class_list":["post-36189","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-ios","tag-ios-13","tag-mac","tag-macos-13-ventura","tag-nsdateformatter","tag-programming","tag-swift-foundation","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=36189"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36189\/revisions"}],"predecessor-version":[{"id":36190,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36189\/revisions\/36190"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=36189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=36189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=36189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}