Skip to content

Commit

Permalink
fixup! Convert ScreenSharingView to SwiftUI
Browse files Browse the repository at this point in the history
This PR converts ScreenSharingView to SwiftUI

MOB-2720
  • Loading branch information
rasmustautsglia committed Sep 27, 2023
1 parent a7f9f84 commit ebd6434
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import SwiftUI
extension CallVisualizer.ScreenSharingView.Model {
static func mock(
style: ScreenSharingViewStyle = .mock(),
screenSharingHandler: ScreenShareHandler = .mock
) -> CallVisualizer.ScreenSharingView.Model {
screenSharingHandler: ScreenShareHandler = .mock
) -> CallVisualizer.ScreenSharingView.Model {
.init(
style: style,
environment: .init(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ extension CallVisualizer.ScreenSharingView.Model {
var backButton: HeaderButtonSwiftUI.Model?
if let endButtonStyle = style.header.backButton {
backButton = .init(
tap: Cmd(closure: { [weak self] in
tap: Cmd { [weak self] in
self?.delegate(.closeTapped)
}),
},
style: endButtonStyle,
accessibilityIdentifier: "header_back_button",
isEnabled: true,
Expand Down

0 comments on commit ebd6434

Please sign in to comment.