diff --git a/DemoApp/Screens/Livestream/DemoLivestreamChatMessageListVC.swift b/DemoApp/Screens/Livestream/DemoLivestreamChatMessageListVC.swift index 1603443a61..6a6a470032 100644 --- a/DemoApp/Screens/Livestream/DemoLivestreamChatMessageListVC.swift +++ b/DemoApp/Screens/Livestream/DemoLivestreamChatMessageListVC.swift @@ -35,7 +35,7 @@ class DemoLivestreamChatMessageListVC: ChatMessageListVC { if let sheetController = actionsController.sheetPresentationController { sheetController.detents = [ .custom { _ in - return 180 + 180 } ] sheetController.prefersGrabberVisible = true @@ -47,7 +47,7 @@ class DemoLivestreamChatMessageListVC: ChatMessageListVC { } override func messageContentViewDidTapOnReactionsView(_ indexPath: IndexPath?) { - guard + guard let indexPath = indexPath, let cell = listView.cellForRow(at: indexPath) as? ChatMessageCell, let messageContentView = cell.messageContentView, diff --git a/DemoApp/Screens/Livestream/DemoLivestreamReactionsListView.swift b/DemoApp/Screens/Livestream/DemoLivestreamReactionsListView.swift index 6c3d124bc5..b85a00fe87 100644 --- a/DemoApp/Screens/Livestream/DemoLivestreamReactionsListView.swift +++ b/DemoApp/Screens/Livestream/DemoLivestreamReactionsListView.swift @@ -107,7 +107,7 @@ struct DemoLivestreamReactionsListView: View { } } -fileprivate struct ReactionRowView: View { +private struct ReactionRowView: View { let reaction: ChatMessageReaction var body: some View {