File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ struct SessionEditor: View {
65
65
var body : some View {
66
66
NavigationStack {
67
67
Form {
68
- LabeledContent {
68
+ Section ( header : Text ( " Server URL " ) ) {
69
69
TextField ( " " , text: Binding (
70
70
get: {
71
71
if url? . scheme == nil || url? . scheme == " " {
@@ -90,8 +90,7 @@ struct SessionEditor: View {
90
90
. disableAutocorrection ( true )
91
91
. textInputAutocapitalization ( . never)
92
92
. accessibilityIdentifier ( " urlTextField " )
93
- } label: {
94
- Text ( " URL: " )
93
+ . keyboardType ( . URL)
95
94
}
96
95
if insecureURL {
97
96
let warningMessage = " ⚠️ HTTPS strongly recommend. "
@@ -103,6 +102,7 @@ struct SessionEditor: View {
103
102
. foregroundColor ( . red)
104
103
}
105
104
}
105
+ . padding ( . top, - 40 )
106
106
. toolbar {
107
107
ToolbarItem ( placement: . principal) {
108
108
Text ( editorTitle)
@@ -125,7 +125,7 @@ struct SessionEditor: View {
125
125
}
126
126
} )
127
127
{
128
- Text ( editorTitle )
128
+ Text ( " Save " )
129
129
}
130
130
. accessibilityIdentifier ( " serverSubmitButton " )
131
131
. alert ( isPresented: $badURL) {
You can’t perform that action at this time.
0 commit comments