Skip to content

Commit 30bc7ce

Browse files
committed
Live Event App
* Removed contract files * Added a placeholder view in LiveStreamViewController * LiveEventAppMessageListItemCell -> CustomMessageListItemCell
1 parent f03bb1a commit 30bc7ce

File tree

4 files changed

+16
-92
lines changed

4 files changed

+16
-92
lines changed

live-event-app/live-event-app/LiveStreamViewController.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,17 @@ import UIKit
2929
class LiveStreamViewController: UIViewController {
3030
override func viewDidLoad() {
3131
super.viewDidLoad()
32+
33+
let streamViewLabel = UILabel()
34+
streamViewLabel.translatesAutoresizingMaskIntoConstraints = false
35+
streamViewLabel.text = "Stream view"
36+
streamViewLabel.textColor = .lightText
37+
streamViewLabel.font = UIFont(name: "Poppins-Light", size: 18)
38+
streamViewLabel.sizeToFit()
39+
40+
view.addSubview(streamViewLabel)
41+
42+
streamViewLabel.centerXAnchor.constraint(equalTo: view.centerXAnchor).isActive = true
43+
streamViewLabel.centerYAnchor.constraint(equalTo: view.centerYAnchor).isActive = true
3244
}
3345
}

live-event-app/live-event-app/RootViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class RootViewController: UIViewController {
108108

109109
messageListContainerViewController.view.leadingAnchor.constraint(equalTo: streamViewController.view.trailingAnchor),
110110
messageListContainerViewController.view.trailingAnchor.constraint(equalTo: view.trailingAnchor),
111-
messageListContainerViewController.view.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 6.0 / 16.0),
111+
messageListContainerViewController.view.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 7.0 / 16.0),
112112
messageListContainerViewController.view.bottomAnchor.constraint(equalTo: view.bottomAnchor),
113113
messageListContainerViewController.view.topAnchor.constraint(equalTo: view.topAnchor)
114114
]

live-event-app/live-event-app/Theming/MessageListTheme.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ let messageListCollectionViewTheme = CollectionViewComponentTheme(
6060
)
6161

6262
let autorItemTheme = MessageListCellComponentTheme(
63-
textMessageContentCellType: LiveEventAppMessageListItemCell.self,
63+
textMessageContentCellType: CustomMessageListItemCell.self,
6464
backgroundColor: .clear,
6565
highlightColor: .clear,
6666
selectedColor: .clear,
@@ -109,7 +109,7 @@ let autorItemTheme = MessageListCellComponentTheme(
109109
)
110110

111111
let incomingItemTheme = MessageListCellComponentTheme(
112-
textMessageContentCellType: LiveEventAppMessageListItemCell.self,
112+
textMessageContentCellType: CustomMessageListItemCell.self,
113113
backgroundColor: .clear,
114114
highlightColor: .clear,
115115
selectedColor: .clear,
@@ -183,7 +183,7 @@ let messageListComponentTheme = MessageListComponentTheme(
183183
enableReactions: false
184184
)
185185

186-
class LiveEventAppMessageListItemCell: MessageCollectionViewCellComponent {
186+
class CustomMessageListItemCell: MessageCollectionViewCellComponent {
187187

188188
private var authorAvatarView: PubNubInlineAvatarComponentView!
189189
private var messageContentView: PubNubMessageContentTextView!

live-event-app/live-event-app/contracts/load-test-1.ts

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

0 commit comments

Comments
 (0)