From e784761e0adcdcd2a71c2f99bf6eb206d4919ca1 Mon Sep 17 00:00:00 2001 From: Victor Toni Date: Wed, 10 Apr 2024 18:23:56 +0200 Subject: [PATCH] Fix typos --- .../MediaPreview/MediaPreviewViewController.swift | 4 ++-- Yep/Views/Media/MediaPreviewView.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Yep/ViewControllers/MediaPreview/MediaPreviewViewController.swift b/Yep/ViewControllers/MediaPreview/MediaPreviewViewController.swift index 2945dcfbd..3e054b174 100644 --- a/Yep/ViewControllers/MediaPreview/MediaPreviewViewController.swift +++ b/Yep/ViewControllers/MediaPreview/MediaPreviewViewController.swift @@ -625,8 +625,8 @@ extension MediaPreviewViewController: UICollectionViewDataSource, UICollectionVi if currentItem.status == .ReadyToPlay { let durationSeconds = CMTimeGetSeconds(currentItem.duration) let currentSeconds = CMTimeGetSeconds(time) - let coundDownTime = Double(Int((durationSeconds - currentSeconds) * 10)) / 10 - self?.mediaControlView.timeLabel.text = "\(coundDownTime)" + let countDownTime = Double(Int((durationSeconds - currentSeconds) * 10)) / 10 + self?.mediaControlView.timeLabel.text = "\(countDownTime)" } }) diff --git a/Yep/Views/Media/MediaPreviewView.swift b/Yep/Views/Media/MediaPreviewView.swift index 9016d657a..f016a0b08 100644 --- a/Yep/Views/Media/MediaPreviewView.swift +++ b/Yep/Views/Media/MediaPreviewView.swift @@ -78,8 +78,8 @@ final class MediaPreviewView: UIView { if currentItem.status == .ReadyToPlay { let durationSeconds = CMTimeGetSeconds(currentItem.duration) let currentSeconds = CMTimeGetSeconds(time) - let coundDownTime = Double(Int((durationSeconds - currentSeconds) * 10)) / 10 - self.mediaControlView.timeLabel.text = "\(coundDownTime)" + let countDownTime = Double(Int((durationSeconds - currentSeconds) * 10)) / 10 + self.mediaControlView.timeLabel.text = "\(countDownTime)" } })