Contents

predicateForSelectionOfPerson

Optionally determines if a selected person should be returned to the app or displayed.

Declaration

@NSCopying var predicateForSelectionOfPerson: NSPredicate? { get set }

Discussion

If the predicate evaluates to true for the selected person, the selected person is returned to the app. If the predicate evaluates to false, the selected person is displayed.

If this property is nil, the person is returned to the app if the delegate implements peoplePickerNavigationController(_:didSelectPerson:), and the person is displayed if the delegate implements peoplePickerNavigationController(_:didSelectPerson:property:identifier:).

See Also

Customizing Display and Selection