ExtensionView

This commit is contained in:
MustangYM
2023-03-25 20:24:15 +08:00
parent 59a74f9534
commit bf4e3b6064
2 changed files with 9 additions and 9 deletions

View File

@@ -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?

View File

@@ -17,3 +17,12 @@ extension View {
}
}
//macOS13
extension NSTextView {
open override var frame: CGRect {
didSet {
backgroundColor = .clear
drawsBackground = true
}
}
}