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

# init(selection:)

Creates a new activity picker.

## Declaration

```swift
@MainActor @preconcurrency init(selection: Binding<FamilyActivitySelection>)
```

## Parameters

- `selection`: A binding that manages the user-selected categories, apps, and web domains.

## See Also

### Creating activity pickers

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