mirror of
https://github.com/MustangYM/OSXChatGpt.git
synced 2025-11-25 03:15:08 +08:00
ExtensionView
This commit is contained in:
@@ -8,15 +8,6 @@
|
||||
import SwiftUI
|
||||
import AppKit
|
||||
|
||||
//低于macOS13输入框的背景色
|
||||
extension NSTextView {
|
||||
open override var frame: CGRect {
|
||||
didSet {
|
||||
backgroundColor = .clear
|
||||
drawsBackground = true
|
||||
}
|
||||
}
|
||||
}
|
||||
/// 聊天框
|
||||
struct ChatRoomView: View {
|
||||
var conversation: Conversation?
|
||||
|
||||
@@ -17,3 +17,12 @@ extension View {
|
||||
}
|
||||
}
|
||||
|
||||
//低于macOS13输入框的背景色
|
||||
extension NSTextView {
|
||||
open override var frame: CGRect {
|
||||
didSet {
|
||||
backgroundColor = .clear
|
||||
drawsBackground = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user