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

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

Present an activity picker sheet for selecting apps and websites to manage.

## Declaration

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

```

## Parameters

- `title`: An optional string that provides a title for the picker view.
- `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 selected categories, apps, and web domains.

## Discussion

Discussion Use this view modifier to present a FamilyControls/FamilyActivityPicker with a custom title. struct ContentView: View {     @State private var selection = FamilyActivitySelection()     @State private var isPresented = false

var body: some View {         Button("Select Activities") {             isPresented = true         }         .familyActivityPicker(             title: "Choose Apps to Limit",             headerText: "Select apps and websites to manage",             footerText: "These selections will be used for screen time limits",             isPresented: $isPresented,             selection: $selection         )         .onChange(of: selection) { newSelection in             // Handle the selected activities             print("Selected \(newSelection.applications.count) apps")         }     } }

## See Also

### Configuring Family Sharing

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