From 7d4c9dde1a4ede950946d48a17790057cebc75ab Mon Sep 17 00:00:00 2001 From: Dominik Bucher Date: Thu, 25 Mar 2021 20:12:11 +0100 Subject: [PATCH] =?UTF-8?q?[CIS-736]=20Improve=20Demo=20App=20experience?= =?UTF-8?q?=20=F0=9F=A4=94=20(#910)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Polish Demo App login screen * Add haptic feedback upon long-pressing message in messageList * Not show reaction on message when there is no image for it * Add loading indicator to channelList --- DemoApp/AdvancedOptionsViewController.swift | 16 ----- DemoApp/Base.lproj/Main.storyboard | 19 +++--- DemoApp/LoginViewController.swift | 4 +- .../ChatChannelList/ChatChannelListVC.swift | 27 ++++++++- .../ChatMessageListRouter.swift | 2 +- .../ChatMessageList/ChatMessageListVC.swift | 60 +++++++++++++++++-- .../ChatMessageReactionsBubbleView.swift | 9 +++ .../ChatMessagePopupVC.swift | 30 +++++++--- Sources/StreamChatUI/Utils/Animation.swift | 4 +- 9 files changed, 127 insertions(+), 44 deletions(-) diff --git a/DemoApp/AdvancedOptionsViewController.swift b/DemoApp/AdvancedOptionsViewController.swift index 38eb90aa7f2..92926f04011 100644 --- a/DemoApp/AdvancedOptionsViewController.swift +++ b/DemoApp/AdvancedOptionsViewController.swift @@ -5,11 +5,6 @@ import UIKit class MainButton: UIButton { - override func tintColorDidChange() { - backgroundColor = tintColor - setTitleColor(.white, for: .normal) - } - override func updateConstraints() { super.updateConstraints() translatesAutoresizingMaskIntoConstraints = false @@ -29,15 +24,4 @@ class AdvancedOptionsViewController: UIViewController { mainStackView.isLayoutMarginsRelativeArrangement = true } } - - override func viewDidLoad() { - super.viewDidLoad() - - title = "Advanced Options" - } - - override func viewWillAppear(_ animated: Bool) { - super.viewWillAppear(animated) - navigationController?.isNavigationBarHidden = false - } } diff --git a/DemoApp/Base.lproj/Main.storyboard b/DemoApp/Base.lproj/Main.storyboard index 920c8e2f69a..ccbe75802c6 100644 --- a/DemoApp/Base.lproj/Main.storyboard +++ b/DemoApp/Base.lproj/Main.storyboard @@ -3,6 +3,7 @@ + @@ -120,7 +121,7 @@ - + @@ -132,11 +133,11 @@ - + - + @@ -161,7 +162,7 @@