---
title: "Compact Photos Picker Style | Explore SwiftUI"
description: "A photos picker style that displays the picker without presenting a sheet. Learn how to use Compact Photos Picker Style in SwiftUI with visual code examples."
canonical_url: "https://exploreswiftui.com/library/photospicker/compact-photos-picker-style"
meta:
  author: "Explore SwiftUI"
  "og:description": "A photos picker style that displays the picker without presenting a sheet. Learn how to use Compact Photos Picker Style in SwiftUI with visual code examples."
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Compact%2BPhotos%2BPicker%2BStyle%2Cdescription_A%2Bphotos%2Bpicker%2Bstyle%2Bthat%2Bdisplays%2Bthe%2Bpicker%2Bwithout%2Bpresenting%2Ba%2Bsheet.%2Ccategory_PhotosPicker%2Cimage_~L2FwaS9pbWFnZXMvMjcyL3ZhcmlhbnRzLzIzMTk~dj0xNzk1MDg1NTM0OTIxJnI9MiZ3PTEyODAmcT04NSZmPWpwZWc%2CimageMode_crop%2CimagePosition_top%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm90dG9tOiAwOyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogNzRweDs%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwibWFjT1MiLCJ2aXNpb25PUyJdfQ%2Cp_Ii9saWJyYXJ5L3Bob3Rvc3BpY2tlci9jb21wYWN0LXBob3Rvcy1waWNrZXItc3R5bGUi%2Cs_91yx8p2-q2UCCRND.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Compact Photos Picker Style | Explore SwiftUI"
  "twitter:description": "A photos picker style that displays the picker without presenting a sheet. Learn how to use Compact Photos Picker Style in SwiftUI with visual code examples."
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Compact%2BPhotos%2BPicker%2BStyle%2Cdescription_A%2Bphotos%2Bpicker%2Bstyle%2Bthat%2Bdisplays%2Bthe%2Bpicker%2Bwithout%2Bpresenting%2Ba%2Bsheet.%2Ccategory_PhotosPicker%2Cimage_~L2FwaS9pbWFnZXMvMjcyL3ZhcmlhbnRzLzIzMTk~dj0xNzk1MDg1NTM0OTIxJnI9MiZ3PTEyODAmcT04NSZmPWpwZWc%2CimageMode_crop%2CimagePosition_top%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm90dG9tOiAwOyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogNzRweDs%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwibWFjT1MiLCJ2aXNpb25PUyJdfQ%2Cp_Ii9saWJyYXJ5L3Bob3Rvc3BpY2tlci9jb21wYWN0LXBob3Rvcy1waWNrZXItc3R5bGUi%2Cs_91yx8p2-q2UCCRND.png"
  "twitter:title": "Compact Photos Picker Style | Explore SwiftUI"
---

> Index of every page on this site: [llms.txt](https://exploreswiftui.com/llms.txt)

**Interactive previews**[ iPhone Duo](https://exploreswiftui.com/duo?element=272) [ iPhone](https://exploreswiftui.com/iphone?element=272) [ iPad](https://exploreswiftui.com/ipad?element=272)

# **Compact Photos Picker Style**

A photos picker style that displays the picker without presenting a sheet.

![Compact Photos Picker Style - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/272/variants/2319?v=1795085534921&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

iOS 17.0+ iPadOS 17.0+ macOS 14.0+ visionOS 1.0+

### **Tags**

### **SwiftUI Code**

[ Docs](https://developer.apple.com/documentation/photosui/photospickerstyle/compact)

```
PhotosPicker("FooBar", selection: $selectedPhoto)
    .photosPickerStyle(.compact)
```

### **Found an issue or have a suggestion?**

Created: November 19, 2026Updated: November 19, 2026

### **More PhotosPicker Components **

[**View all **](https://exploreswiftui.com/library/photospicker)

![Inline Photos Picker Style - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/273/variants/2359?v=1795085506418&r=2&w=412&q=75&f=webp)

### **Inline Photos Picker Style**

A photos picker style that displays the picker inline without presenting a sheet.

![Photos Picker - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/271/variants/2279?v=1794914000934&r=2&w=412&q=75&f=webp)

### **Photos Picker**

Creates a picker with a title key and selection, and optionally configures the types of items to show and item encoding behavior.

![Photos Picker Title - iPadOS - Landscape - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/270/variants/2261?v=1794910543223&r=2&w=412&q=75&f=webp)

### **Photos Picker Title**

Overrides the title of the Photos picker. The title is not visible on small screens, like the iPhone.

![Photos Picker Prompt - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/269/variants/2259?v=1794910719258&r=2&w=412&q=75&f=webp)

### **Photos Picker Prompt**

Sets the prompt of the Photos picker.

![On Secondary Photos Picker Action - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/268/variants/2255?v=1794910758520&r=2&w=412&q=75&f=webp)

### **On Secondary Photos Picker Action**

Sets the secondary action handler for the Photos picker.

![On Primary Photos Picker Action - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/267/variants/2251?v=1794910789851&r=2&w=412&q=75&f=webp)

### **On Primary Photos Picker Action**

Sets the primary action handler for the Photos picker.

![Container Photo Picker - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/266/variants/2243?v=1794910698423&r=2&w=412&q=75&f=webp)

### **Container Photo Picker**

Limits the Photos picker to only show items in the specified container. In this case, to the user-created album "CustomAlbum".

![Custom Photo Picker Buttons - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/265/variants/2235?v=1794910823065&r=2&w=412&q=75&f=webp)

### **Custom Photo Picker Buttons**

Sets the primary and secondary button types of the Photos picker.

### **Explore Other Components **

[**Browse all **](https://exploreswiftui.com/)

![Hidden List Row Separator - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/120/variants/343?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Hidden List Row Separator**

Sets the display mode to hidden for the separator associated with this specific row.

![Button Sizing - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/190/variants/3?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Button Sizing**

The preferred sizing behavior of buttons in the view hierarchy.

![DatePicker - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/58/variants/114?v=1790073478842&r=2&w=412&q=75&f=webp)

### **DatePicker**

Creates an instance that selects a Date with an unbounded range

![NavigationLinkPickerStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/181/variants/560?v=1790073478842&r=2&w=412&q=75&f=webp)

### **NavigationLinkPickerStyle**

A picker style represented by a navigation link that presents the options by pushing a List-style picker view.

![Custom Value Label Picker - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/176/variants/548?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Custom Value Label Picker**

Creates a picker that generates its label from a localized string key and accepts a custom current value label.

![EditButton - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/36/variants/239?v=1790073478842&r=2&w=412&q=75&f=webp)

### **EditButton**

A button that toggles the edit mode environment value

![PalettePickerStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/184/variants/598?v=1790073478842&r=2&w=412&q=75&f=webp)

### **PalettePickerStyle**

A picker style that presents the options as a row of compact elements. When used outside of menus, this style is rendered as a segmented picker. If that is the intended usage, consider segmented instead.

![Hour Minute Seconds DatePicker - watchOS - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/61/variants/181?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Hour Minute Seconds DatePicker**

A DatePicker for just hour, minute, and second.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://exploreswiftui.com/#website","@type":"WebSite","description":"A visual library for SwiftUI APIs, components, and modifiers","inLanguage":"en-US","name":"Explore SwiftUI","url":"https://exploreswiftui.com/","publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/photospicker/compact-photos-picker-style#webpage","@type":"WebPage","dateModified":"2026-11-19T10:52:15.344Z","datePublished":"2026-11-19T07:08:49.633Z","description":"A photos picker style that displays the picker without presenting a sheet. Learn how to use Compact Photos Picker Style in SwiftUI with visual code examples.","name":"Compact Photos Picker Style","url":"https://exploreswiftui.com/library/photospicker/compact-photos-picker-style","breadcrumb":{"@id":"https://exploreswiftui.com/library/photospicker/compact-photos-picker-style#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"mainEntity":{"@id":"https://exploreswiftui.com/library/photospicker/compact-photos-picker-style#article"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/photospicker/compact-photos-picker-style"]}],"primaryImageOfPage":{"@id":"https://exploreswiftui.com/#logo"}},{"@id":"https://exploreswiftui.com/#identity","@type":"Organization","description":"A visual library for SwiftUI APIs, components, and modifiers","name":"Explore SwiftUI","url":"https://exploreswiftui.com","logo":{"@id":"https://exploreswiftui.com/#logo"},"sameAs":["https://x.com/Typ0genius","https://mastodon.social/@Typ0genius"]},{"@id":"https://exploreswiftui.com/library/photospicker/compact-photos-picker-style#article","citation":"https://developer.apple.com/documentation/photosui/photospickerstyle/compact","dateModified":"2026-11-19T10:52:15.344Z","datePublished":"2026-11-19T07:08:49.633Z","description":"A photos picker style that displays the picker without presenting a sheet. Learn how to use Compact Photos Picker Style in SwiftUI with visual code examples.","headline":"Compact Photos Picker Style","inLanguage":"en-US","name":"Compact Photos Picker Style","thumbnailUrl":"https://exploreswiftui.com/api/images/272/variants/2319?v=1795085534921&r=2","url":"https://exploreswiftui.com/library/photospicker/compact-photos-picker-style","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"hasPart":{"@id":"https://exploreswiftui.com/library/photospicker/compact-photos-picker-style#source-code"},"image":{"@id":"https://exploreswiftui.com/#/schema/image/1"},"isPartOf":{"@id":"https://exploreswiftui.com/library/photospicker/compact-photos-picker-style#webpage"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/photospicker/compact-photos-picker-style#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/photospicker/compact-photos-picker-style#source-code","@type":"SoftwareSourceCode","codeSampleType":"full example","description":"A photos picker style that displays the picker without presenting a sheet. Learn how to use Compact Photos Picker Style in SwiftUI with visual code examples.","name":"Compact Photos Picker Style SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":"PhotosPicker(\"FooBar\", selection: $selectedPhoto)\n    .photosPickerStyle(.compact)","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"PhotosPicker"},{"@type":"Thing","name":"Compact Photos Picker Style"}]},{"@id":"https://exploreswiftui.com/library/photospicker/compact-photos-picker-style#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"PhotosPicker","item":"https://exploreswiftui.com/library/photospicker","position":2},{"@type":"ListItem","name":"Compact Photos Picker Style","item":"https://exploreswiftui.com/library/photospicker/compact-photos-picker-style","position":3}]},{"@id":"https://exploreswiftui.com/#logo","@type":"ImageObject","caption":"Explore SwiftUI","contentUrl":"https://exploreswiftui.com/apple-touch-icon.png","inLanguage":"en","url":"https://exploreswiftui.com/apple-touch-icon.png"},{"@id":"https://exploreswiftui.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://exploreswiftui.com/api/images/272/variants/2319?v=1795085534921&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/272/variants/2319?v=1795085534921&r=2"}]}
```