Skip to content

Commit 710a2cc

Browse files
committed
fix: source control message textfield problems in iOS 26
1 parent 8abc333 commit 710a2cc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CodeApp/Views/SourceControlSection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private struct MainSection: View {
127127
.autocapitalization(.none)
128128
.disableAutocorrection(true)
129129
}
130-
.frame(minHeight: 25)
130+
.frame(minHeight: 60)
131131
.padding(.horizontal, 4)
132132
.background(Color.init(id: "input.background"))
133133
.cornerRadius(10)

CodeApp/Views/TextEditorWithPlaceholder.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ struct TextEditorWithPlaceholder: View {
2222
ZStack {
2323
if text.isEmpty {
2424
TextEditor(text: $placeholder)
25+
.scrollContentBackground(.hidden)
2526
.foregroundColor(.gray)
2627
.disabled(true)
2728
.if(customFont != nil) {
@@ -30,6 +31,7 @@ struct TextEditorWithPlaceholder: View {
3031
}
3132

3233
TextEditor(text: $text)
34+
.scrollContentBackground(.hidden)
3335
.autocapitalization(.none)
3436
.disableAutocorrection(true)
3537
.if(customFont != nil) {

0 commit comments

Comments
 (0)