Skip to content

Commit

Permalink
Update SubtittlesView.swift (#152)
Browse files Browse the repository at this point in the history
Co-authored-by: stepanokdev <[email protected]>
  • Loading branch information
IvanStepanok and Stepanokdev authored Nov 8, 2023
1 parent 7256a71 commit cdcfdb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Course/Course/Presentation/Video/SubtittlesView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public struct Subtitle {

public struct SubtittlesView: View {

@Environment (\.isHorizontal) private var isHorizontal

@ObservedObject
private var viewModel: VideoPlayerViewModel
private var scrollTo: ((Date) -> Void) = { _ in }
Expand All @@ -37,7 +39,7 @@ public struct SubtittlesView: View {

public var body: some View {
ScrollViewReader { scroll in
VStack(alignment: .leading, spacing: 0) {
VStack(alignment: .leading, spacing: 16) {
HStack {
Text(viewModel.subtitles.isEmpty ? "" : CourseLocalization.Subtitles.title)
.font(Theme.Fonts.titleMedium)
Expand Down Expand Up @@ -97,6 +99,7 @@ public struct SubtittlesView: View {
}
}.padding(.horizontal, 24)
.padding(.top, 16)
.padding(.bottom, isHorizontal ? 100 : 16)
}
}

Expand Down

0 comments on commit cdcfdb6

Please sign in to comment.