Sergey 2 years ago
parent
commit
8f33563d8b

+ 1 - 9
Chat.xcodeproj/project.pbxproj

@@ -92,7 +92,6 @@
 				2FCB762228AA58E00097BD1D /* ChatList */,
 				2F24E94528F2FAE0007ECE97 /* Chat */,
 				2F24E94628F2FAEA007ECE97 /* Rooms */,
-				2F81973C28AB7FE8008D8C45 /* Helpers */,
 			);
 			path = UI;
 			sourceTree = "<group>";
@@ -104,6 +103,7 @@
 				2FB65BD928F9EE9300007021 /* ChatMessageListView.swift */,
 				2F6E936B28F8D74600FAF0E5 /* MessageTextField.swift */,
 				2FCB75EC28A42B1E0097BD1D /* ChatViewModel.swift */,
+				2F60459B288D8000008F005E /* MessageView.swift */,
 			);
 			path = Chat;
 			sourceTree = "<group>";
@@ -145,14 +145,6 @@
 			name = Products;
 			sourceTree = "<group>";
 		};
-		2F81973C28AB7FE8008D8C45 /* Helpers */ = {
-			isa = PBXGroup;
-			children = (
-				2F60459B288D8000008F005E /* MessageView.swift */,
-			);
-			path = Helpers;
-			sourceTree = "<group>";
-		};
 		2F81974628ACEDB6008D8C45 /* Models */ = {
 			isa = PBXGroup;
 			children = (

+ 0 - 3
Chat/UI/Chat/ChatView.swift

@@ -14,11 +14,8 @@ extension CGFloat {
 }
 
 struct ChatView: View {
-
     @StateObject var viewModel: ChatViewModel
 
-    @State private var isKeyboardVisible = false
-
     var body: some View {
         VStack(alignment: .center, spacing: 0) {
 			ChatMessageListView(messages: viewModel.messages)

+ 0 - 0
Chat/UI/Helpers/MessageView.swift → Chat/UI/Chat/MessageView.swift


+ 0 - 2
Chat/UI/ChatList/ChatListView.swift

@@ -10,8 +10,6 @@ import XMPPFramework
 import XMPPFrameworkSwift
 
 struct ChatListView: View {
-    @Environment(\.colorScheme) var colorScheme
-
 	@StateObject var viewModel: ChatListViewModel = ChatListViewModel()
 
     var body: some View {

+ 1 - 0
Chat/UI/ContentView.swift

@@ -12,6 +12,7 @@ struct ContentView: View {
 
     @State var authStatus: Bool = false
     @State var selectedTab: Tab = .rooms
+	
     var body: some View {
         Group {
             if authStatus {

+ 0 - 2
Chat/UI/Rooms/RoomsListView.swift

@@ -8,8 +8,6 @@
 import SwiftUI
 
 struct RoomsListView: View {
-    @Environment(\.colorScheme) var colorScheme
-
 	@StateObject var viewModel: RoomsListViewModel = RoomsListViewModel()
 
     var body: some View {