Skip to content

Commit

Permalink
remove Introspect
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderLineChan committed Apr 17, 2023
1 parent 0ca94ed commit 80a3a15
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 36 deletions.
17 changes: 0 additions & 17 deletions OSXChatGPT/OSXChatGPT.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
CB1F014D29E9A4CC009CF942 /* MessageTextModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB1F014C29E9A4CC009CF942 /* MessageTextModel.swift */; };
CB1F014F29E9B6BC009CF942 /* CodeHighlighter.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB1F014E29E9B6BC009CF942 /* CodeHighlighter.swift */; };
CB1F015129E9BC8C009CF942 /* Tokenizer.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB1F015029E9BC8C009CF942 /* Tokenizer.swift */; };
CB1F015429EAD9E9009CF942 /* Introspect in Frameworks */ = {isa = PBXBuildFile; productRef = CB1F015329EAD9E9009CF942 /* Introspect */; };
CB1F015B29EAFBF5009CF942 /* MessageText+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB1F015729EAFBF5009CF942 /* MessageText+CoreDataClass.swift */; };
CB1F015C29EAFBF5009CF942 /* MessageText+CoreDataProperties.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB1F015829EAFBF5009CF942 /* MessageText+CoreDataProperties.swift */; };
CB1F015F29EB9D05009CF942 /* Message+CoreDataClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB1F015D29EB9D05009CF942 /* Message+CoreDataClass.swift */; };
Expand Down Expand Up @@ -151,7 +150,6 @@
files = (
CB0F5A5B29D057FF005B71D2 /* SplashMarkdown in Frameworks */,
182B42C929BBB1C500F06778 /* Colorful in Frameworks */,
CB1F015429EAD9E9009CF942 /* Introspect in Frameworks */,
CB2F971F29CE12B6004EBD96 /* MarkdownUI in Frameworks */,
CB0F5A5929D057FF005B71D2 /* Splash in Frameworks */,
);
Expand Down Expand Up @@ -388,7 +386,6 @@
CB2F971E29CE12B6004EBD96 /* MarkdownUI */,
CB0F5A5829D057FF005B71D2 /* Splash */,
CB0F5A5A29D057FF005B71D2 /* SplashMarkdown */,
CB1F015329EAD9E9009CF942 /* Introspect */,
);
productName = OSXChatGPT;
productReference = CB1DCABE29B4F09D00B1D4E1 /* OSXChatGPT.app */;
Expand Down Expand Up @@ -421,7 +418,6 @@
182B42C729BBB1C500F06778 /* XCRemoteSwiftPackageReference "Colorful" */,
CB2F971D29CE12B6004EBD96 /* XCRemoteSwiftPackageReference "swift-markdown-ui" */,
CB0F5A5729D057FF005B71D2 /* XCRemoteSwiftPackageReference "Splash" */,
CB1F015229EAD9E9009CF942 /* XCRemoteSwiftPackageReference "SwiftUI-Introspect" */,
);
productRefGroup = CB1DCABF29B4F09D00B1D4E1 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -724,14 +720,6 @@
minimumVersion = 0.9.0;
};
};
CB1F015229EAD9E9009CF942 /* XCRemoteSwiftPackageReference "SwiftUI-Introspect" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/siteline/SwiftUI-Introspect.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 0.2.3;
};
};
CB2F971D29CE12B6004EBD96 /* XCRemoteSwiftPackageReference "swift-markdown-ui" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/gonzalezreal/swift-markdown-ui.git";
Expand All @@ -758,11 +746,6 @@
package = CB0F5A5729D057FF005B71D2 /* XCRemoteSwiftPackageReference "Splash" */;
productName = SplashMarkdown;
};
CB1F015329EAD9E9009CF942 /* Introspect */ = {
isa = XCSwiftPackageProductDependency;
package = CB1F015229EAD9E9009CF942 /* XCRemoteSwiftPackageReference "SwiftUI-Introspect" */;
productName = Introspect;
};
CB2F971E29CE12B6004EBD96 /* MarkdownUI */ = {
isa = XCSwiftPackageProductDependency;
package = CB2F971D29CE12B6004EBD96 /* XCRemoteSwiftPackageReference "swift-markdown-ui" */;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,6 @@
"revision" : "4392c3cefd08db10f13ffb019d7c7a4a622824f5",
"version" : "2.0.2"
}
},
{
"identity" : "swiftui-introspect",
"kind" : "remoteSourceControl",
"location" : "https://github.com/siteline/SwiftUI-Introspect.git",
"state" : {
"revision" : "c18951c747ab62af7c15e17a81bd37d4fd5a9979",
"version" : "0.2.3"
}
}
],
"version" : 2
Expand Down
10 changes: 0 additions & 10 deletions OSXChatGPT/OSXChatGPT/WindowView/ChatRoomView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import SwiftUI
import AppKit
import MarkdownUI
import Introspect



Expand Down Expand Up @@ -54,7 +53,6 @@ struct ChatRoomView: View {

.padding(.bottom, 10)
}
.removeBackground()
.onChange(of: viewModel.changeMsgText) { _ in
withAnimation {
if let msgId = viewModel.messages.last?.id {
Expand Down Expand Up @@ -118,14 +116,6 @@ struct ChatRoomView: View {


}
extension List {
func removeBackground() -> some View {
return introspectTableView { tableView in
tableView.backgroundColor = .clear
tableView.enclosingScrollView!.drawsBackground = false
}
}
}

struct ChatRoomCellView: View {
let message: Message
Expand Down

0 comments on commit 80a3a15

Please sign in to comment.