mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
fixed it
This commit is contained in:
@@ -12,7 +12,7 @@ struct TerminalView: View {
|
|||||||
@ObservedObject var handler: SSHHandler
|
@ObservedObject var handler: SSHHandler
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
TextViewController(text: $handler.host.address)
|
TextViewController(text: $handler.terminal)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,9 @@ struct TextViewController: UIViewRepresentable {
|
|||||||
@Binding var text: String
|
@Binding var text: String
|
||||||
|
|
||||||
func makeUIView(context: Context) -> TextView {
|
func makeUIView(context: Context) -> TextView {
|
||||||
var textView = TextView()
|
let textView = TextView()
|
||||||
|
textView.translatesAutoresizingMaskIntoConstraints = false
|
||||||
|
textView.backgroundColor = .systemBackground
|
||||||
return textView
|
return textView
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user