From f8fc37d7e0f17b5e3d9fb33ad694d8be5141929e Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Wed, 20 Dec 2023 19:00:38 +0100 Subject: [PATCH] Improve connection selection UI --- Sesame/ContentView.swift | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Sesame/ContentView.swift b/Sesame/ContentView.swift index 526e664..587887d 100644 --- a/Sesame/ContentView.swift +++ b/Sesame/ContentView.swift @@ -57,9 +57,12 @@ struct ContentView: View { } Picker("Connection type", selection: $coordinator.connectionType) { - ForEach(ConnectionStrategy.allCases, id: \.rawValue) { connection in - Text(connection.description).tag(connection) - } + Text(ConnectionStrategy.local.description).tag(ConnectionStrategy.local) + Text(ConnectionStrategy.remote.description).tag(ConnectionStrategy.remote) + Text(ConnectionStrategy.remoteFirst.description).tag(ConnectionStrategy.remoteFirst) +// ForEach(ConnectionStrategy.allCases, id: \.rawValue) { connection in +// Text(connection.description).tag(connection) +// } } .pickerStyle(.segmented) .padding(.horizontal, 30)