Add Close button in FamilyActivityPicker Toolbar

How can I add an X as close button on the FamilyActivityPicker Toolbar?

Desired effect see image

How about using the code below?

    var body: some View {
          NavigationStack {
            FamilyActivityPicker()
                .toolbar {
                    ToolbarItem(placement: .topBarTrailing) {
                        closeButton
                    }
                }
        }
   }

    @Environment(\.dismiss) var dismiss
    
    private var closeButton: some View {
        Button {
            dismiss()
        } label: {
            Image(systemName: "xmark")
                .foregroundStyle(.white)
        }
    }

Add Close button in FamilyActivityPicker Toolbar
 
 
Q