BadgePickerUIProtocol

public protocol BadgePickerUIProtocol

Badge Picker UI Protocol

  • Prompts user to select a badge from a list.

    Remark

    The UI should take care of dismissing itself upon selection and after completion is called.

    Declaration

    Swift

    static func promptUserForSelection<T: Sequence>(from badges: T, message: String?, completion:@escaping (_ selectedBadge: Badge?) -> Void) where T.Iterator.Element == Badge
    Parameters
    badges

    A sequence of badges

    message

    Optional message to display describing the context.

    completion

    Completion block to be called with the selected badge.