Skip to content

Commit ebe640f

Browse files
removed new chat view from the SDK
1 parent 3814e89 commit ebe640f

File tree

7 files changed

+0
-65
lines changed

7 files changed

+0
-65
lines changed

Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelListHeader.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ public struct DefaultChatChannelListHeader: ToolbarContent {
2121
Text(title)
2222
.font(fonts.bodyBold)
2323
}
24-
ToolbarItem(placement: .navigationBarTrailing) {
25-
NavigationLink {
26-
NewChatView()
27-
} label: {
28-
Image(uiImage: images.messageActionEdit)
29-
.resizable()
30-
}
31-
}
3224
}
3325
}
3426

Sources/StreamChatSwiftUI/ChatChannelList/NoChannelsView.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ public struct NoChannelsView: View {
3131
.padding(.horizontal, 32)
3232

3333
Spacer()
34-
35-
NavigationLink {
36-
NewChatView()
37-
} label: {
38-
Text(L10n.Channel.NoContent.start)
39-
.foregroundColor(Color(colors.highlightedAccentBackground))
40-
.font(fonts.bodyBold)
41-
}
42-
.padding(.bottom, bottomButtonPadding)
4334
}
4435
.frame(maxWidth: .infinity)
4536
.background(Color(colors.background1))

Sources/StreamChatSwiftUI/NewChat/NewChatView.swift

Lines changed: 0 additions & 19 deletions
This file was deleted.

Sources/StreamChatSwiftUI/NewChat/NewChatViewModel.swift

Lines changed: 0 additions & 7 deletions
This file was deleted.

Sources/StreamChatSwiftUI/ViewModelsFactory.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ public class ViewModelsFactory {
3434
return viewModel
3535
}
3636

37-
/// Creates the `NewChatViewModel`.
38-
public static func makeNewChatViewModel() -> NewChatViewModel {
39-
let viewModel = NewChatViewModel()
40-
return viewModel
41-
}
42-
4337
/// Creates the view model for the more channel actions.
4438
///
4539
/// - Parameters:

StreamChatSwiftUI.xcodeproj/project.pbxproj

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@
128128
8465FDD12746A95700AF091E /* Images.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8465FD622746A95700AF091E /* Images.swift */; };
129129
8465FDD22746A95800AF091E /* Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8465FD632746A95700AF091E /* Utils.swift */; };
130130
8465FDD32746A95800AF091E /* ColorPalette.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8465FD642746A95700AF091E /* ColorPalette.swift */; };
131-
8465FDD42746A95800AF091E /* NewChatViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8465FD662746A95700AF091E /* NewChatViewModel.swift */; };
132-
8465FDD52746A95800AF091E /* NewChatView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8465FD672746A95700AF091E /* NewChatView.swift */; };
133131
8465FDD72746A95800AF091E /* Appearance.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8465FD692746A95700AF091E /* Appearance.swift */; };
134132
8465FDD82746AA2700AF091E /* StreamChatSwiftUI.h in Headers */ = {isa = PBXBuildFile; fileRef = 8465FD602746A95700AF091E /* StreamChatSwiftUI.h */; settings = {ATTRIBUTES = (Public, ); }; };
135133
8465FDDD2747A14700AF091E /* CustomComposerAttachmentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8465FDDC2747A14700AF091E /* CustomComposerAttachmentView.swift */; };
@@ -288,8 +286,6 @@
288286
8465FD622746A95700AF091E /* Images.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Images.swift; sourceTree = "<group>"; };
289287
8465FD632746A95700AF091E /* Utils.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Utils.swift; sourceTree = "<group>"; };
290288
8465FD642746A95700AF091E /* ColorPalette.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ColorPalette.swift; sourceTree = "<group>"; };
291-
8465FD662746A95700AF091E /* NewChatViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NewChatViewModel.swift; sourceTree = "<group>"; };
292-
8465FD672746A95700AF091E /* NewChatView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NewChatView.swift; sourceTree = "<group>"; };
293289
8465FD682746A95700AF091E /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
294290
8465FD692746A95700AF091E /* Appearance.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Appearance.swift; sourceTree = "<group>"; };
295291
8465FDDC2747A14700AF091E /* CustomComposerAttachmentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomComposerAttachmentView.swift; sourceTree = "<group>"; };
@@ -414,7 +410,6 @@
414410
8465FCFC2746A95600AF091E /* ChatChannel */,
415411
8465FCF92746A95600AF091E /* CommonViews */,
416412
8465FD312746A95600AF091E /* Utils */,
417-
8465FD652746A95700AF091E /* NewChat */,
418413
8465FCEC2746A95600AF091E /* Generated */,
419414
8465FCF32746A95600AF091E /* Resources */,
420415
8465FD5D2746A95700AF091E /* README.md */,
@@ -615,15 +610,6 @@
615610
path = ChatChannelList;
616611
sourceTree = "<group>";
617612
};
618-
8465FD652746A95700AF091E /* NewChat */ = {
619-
isa = PBXGroup;
620-
children = (
621-
8465FD662746A95700AF091E /* NewChatViewModel.swift */,
622-
8465FD672746A95700AF091E /* NewChatView.swift */,
623-
);
624-
path = NewChat;
625-
sourceTree = "<group>";
626-
};
627613
/* End PBXGroup section */
628614

629615
/* Begin PBXHeadersBuildPhase section */
@@ -833,7 +819,6 @@
833819
8465FDCD2746A95700AF091E /* Fonts.swift in Sources */,
834820
8465FD9A2746A95700AF091E /* ReactionsHelperViews.swift in Sources */,
835821
8465FDC02746A95700AF091E /* ChatChannelList.swift in Sources */,
836-
8465FDD42746A95800AF091E /* NewChatViewModel.swift in Sources */,
837822
8465FD9F2746A95700AF091E /* ChatChannelExtensions.swift in Sources */,
838823
8465FD882746A95700AF091E /* SendMessageButton.swift in Sources */,
839824
8465FDC82746A95700AF091E /* ChatChannelListItem.swift in Sources */,
@@ -878,7 +863,6 @@
878863
8465FDD72746A95800AF091E /* Appearance.swift in Sources */,
879864
8465FD8A2746A95700AF091E /* DiscardAttachmentButton.swift in Sources */,
880865
8465FDCB2746A95700AF091E /* ChatChannelListView.swift in Sources */,
881-
8465FDD52746A95800AF091E /* NewChatView.swift in Sources */,
882866
8465FDD22746A95800AF091E /* Utils.swift in Sources */,
883867
8465FDA12746A95700AF091E /* ChatChannelHeaderViewModifier.swift in Sources */,
884868
8465FDA02746A95700AF091E /* ChatChannelView.swift in Sources */,

0 commit comments

Comments
 (0)