{"id":3331,"date":"2023-06-11T14:50:15","date_gmt":"2023-06-11T18:50:15","guid":{"rendered":"https:\/\/michaelrowe01.com\/?p=3331"},"modified":"2023-06-11T14:50:17","modified_gmt":"2023-06-11T18:50:17","slug":"embed-the-photo-picker-in-your-app","status":"publish","type":"post","link":"https:\/\/michaelrowe01.com\/index.php\/blog\/embed-the-photo-picker-in-your-app\/","title":{"rendered":"Embed the Photo Picker in your App"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"371\" src=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-44.png?resize=660%2C371&#038;ssl=1\" alt=\"\" class=\"wp-image-3332\" srcset=\"https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-44.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-44.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-44.png?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-44.png?resize=1536%2C864&amp;ssl=1 1536w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-44.png?w=1920&amp;ssl=1 1920w, https:\/\/i0.wp.com\/michaelrowe01.com\/wp-content\/uploads\/2023\/06\/%EF%A3%BFWWDC23-44.png?w=1320&amp;ssl=1 1320w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure>\n\n\n\n<p>The new photo picker, you don\u2019t need request any permissions to use it.&nbsp; It is only a few lines of code to use this.<\/p>\n\n\n\n<p>Embedded Picker<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The access model runs in a separate model outside of your app. Only what is selected is passed back to your app.\n<ul class=\"wp-block-list\">\n<li>You can use the new .photosPickerDisabledCapabilities modifier to turn off certain features of the picker<\/li>\n\n\n\n<li>You can disable various accessories to with .photosPickerAccessoryVisibility modifier<\/li>\n\n\n\n<li>You can even change the size of the picker<\/li>\n\n\n\n<li>You can use the new .photosPickerStyle(.inline) to make it more naturally a part of your app<\/li>\n\n\n\n<li>PhotosPicker(selectionBehavior: .continuous) allows your app to respond to each selection of an image.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>There\u2019s a new privacy badge on the picker<\/li>\n\n\n\n<li>A detailed scission of which options can be disabled in the sessions including search, selection actions, and more<\/li>\n\n\n\n<li>The picker style include presentation, inline and compact style (a single row &#8211; scrolling horizontally)<\/li>\n\n\n\n<li>This API is available for iOS, iPadOS, macOS, along with SwiftUI, AppKit and UIKit &#8211; it was not listed for xrOS or VisionOS<\/li>\n<\/ul>\n\n\n\n<p>Options Menu<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This is a new menu, which gives users control of what is shared with your app.&nbsp; They can select to remove metadata and location as example.<\/li>\n<\/ul>\n\n\n\n<p>HDR and Cinematic<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The system may automatically transform assets to things like JPEF, but if you want to include HDR data\n<ul class=\"wp-block-list\">\n<li>you need so set .current encoding policy<\/li>\n\n\n\n<li>And use .image or .more for content type<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The new photo picker, you don\u2019t need request any permissions to use it.&nbsp; It is only a few lines of code to use this. Embedded Picker Options Menu HDR and Cinematic<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_wp_convertkit_post_meta":{"form":"-1","landing_page":"0","tag":"0","restrict_content":"0"},"hide_page_title":"","footnotes":""},"categories":[2,3],"tags":[752,758,322,680],"class_list":["post-3331","post","type-post","status-publish","format-standard","hentry","category-blog","category-personal-softwareandit","tag-day-7","tag-photos-picker","tag-privacy","tag-wwdc23"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/3331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/comments?post=3331"}],"version-history":[{"count":1,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/3331\/revisions"}],"predecessor-version":[{"id":3333,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/posts\/3331\/revisions\/3333"}],"wp:attachment":[{"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/media?parent=3331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/categories?post=3331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michaelrowe01.com\/index.php\/wp-json\/wp\/v2\/tags?post=3331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}