---
title: "init(headerText:footerText:selection:)"
framework: familycontrols
role: symbol
role_heading: Initializer
path: "familycontrols/familyactivitypicker/init(headertext:footertext:selection:)"
---

# init(headerText:footerText:selection:)

Creates a new activity picker with optional header and footer text.

## Declaration

```swift
@MainActor @preconcurrency init(headerText: String? = nil, footerText: String? = nil, selection: Binding<FamilyActivitySelection>)
```

## 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.
- `selection`: A binding that manages the user-selected categories, apps, and web domains.

## See Also

### Creating activity pickers

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