---
title: "familyActivityPicker(headerText:footerText:isPresented:selection:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/familyactivitypicker(headertext:footertext:ispresented:selection:)"
---

# familyActivityPicker(headerText:footerText:isPresented:selection:)

Presents an activity picker view as a sheet.

## Declaration

```swift
@MainActor @preconcurrency func familyActivityPicker(headerText: String? = nil, footerText: String? = nil, isPresented: Binding<Bool>, selection: Binding<FamilyActivitySelection>) -> some View

```

## Parameters

- `headerText`: An optional string that provides text for the header of the picker view.
- `footerText`: An optional string that provides text for the footer of the picker view.
- `isPresented`: A binding that indicates whether the app presents the picker view.
- `selection`: A binding that manages the user-selected categories, apps, and web domains.

## Discussion

Discussion Use this view modifier to present a FamilyControls/FamilyActivityPicker.

## See Also

### Configuring Family Sharing

- [FamilyActivityPicker](familycontrols/familyactivitypicker.md)
- [familyActivityPicker(isPresented:selection:)](swiftui/view/familyactivitypicker(ispresented:selection:).md)
- [familyActivityPicker(title:headerText:footerText:isPresented:selection:)](swiftui/view/familyactivitypicker(title:headertext:footertext:ispresented:selection:).md)
