Skip to content

Commit

Permalink
Merge pull request #96 from DeveloperAcademy-POSTECH/feat/#85-InputKo…
Browse files Browse the repository at this point in the history
…reanInVideoPlayView

[��Feat] #85 - 비디오 플레이 뷰에 한글 대사 표시하기
  • Loading branch information
SSub-jun authored Nov 30, 2024
2 parents cf25839 + bd83b08 commit 71e2a80
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions PepperoniV2/Presentation/Game/VideoPlayView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,26 @@ struct VideoPlayView: View {
}
.padding(.init(top: 0, leading: 36, bottom: 28, trailing: 36))

if let selectedQuote = gameViewModel.selectedQuote{
YouTubePlayerView(
videoID: selectedQuote.youtubeID,
startTime: Int(selectedQuote.youtubeStartTime),
endTime: Int(selectedQuote.youtubeEndTime),
replayTrigger: replayTrigger
)
.frame(height: 218)
.padding(.bottom, 24)
VStack(spacing: 0){
Rectangle()
.frame(height: 52)
.foregroundStyle(Color.ppDarkGray_03)
.overlay{
Text("\"\(gameViewModel.selectedQuote?.korean.joined(separator: " ") ?? "")\"")
.hakgyoansim(size: 18)
.foregroundStyle(Color.ppMint_00)
}

if let selectedQuote = gameViewModel.selectedQuote{
YouTubePlayerView(
videoID: selectedQuote.youtubeID,
startTime: Int(selectedQuote.youtubeStartTime),
endTime: Int(selectedQuote.youtubeEndTime),
replayTrigger: replayTrigger
)
.frame(height: 218)
.padding(.bottom, 24)
}
}

RoundedRectangle(cornerRadius: 10)
Expand Down

0 comments on commit 71e2a80

Please sign in to comment.