Skip to content

Commit

Permalink
fix Incorrect styles for video player (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanStepanok authored May 12, 2023
1 parent 529cab2 commit 9f099ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Course/Course/Presentation/Video/EncodedVideoPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public struct EncodedVideoPlayer: View {
currentTime = seconds
})
.aspectRatio(16 / 9, contentMode: .fit)
.cornerRadius(12)
.padding(.horizontal, 6)
.onReceive(NotificationCenter.Publisher(
center: .default,
name: UIDevice.orientationDidChangeNotification)) { _ in
Expand Down
2 changes: 2 additions & 0 deletions Course/Course/Presentation/Video/YouTubeVideoPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ public struct YouTubeVideoPlayer: View {
}
}
})
.cornerRadius(12)
.padding(.horizontal, 6)
.aspectRatio(16/8.8, contentMode: .fit)
.onReceive(NotificationCenter
.Publisher(center: .default,
Expand Down

0 comments on commit 9f099ed

Please sign in to comment.