Private
Public Access
1
0

osx: wiring for opening a new window, but not connected to gesture yet

when I add `.tapGesture(count: 2)` to list items, this seems to block
single clicks because SwiftUI sucks. Need to find a better way to invoke
this.
This commit is contained in:
2025-09-11 15:33:56 -07:00
parent 955ff95520
commit 6261351598
3 changed files with 46 additions and 2 deletions

View File

@@ -11,7 +11,8 @@ struct ConversationListView: View
{
@Binding var model: ViewModel
@Environment(\.xpcClient) private var xpcClient
@Environment(\.openWindow) private var openWindow
var body: some View {
List($model.conversations, selection: $model.selectedConversation) { conv in
let isUnread = conv.wrappedValue.unreadCount > 0