diff --git a/SanTa/SanTa/Scenes/ResultDetailScene/DetailCell.swift b/SanTa/SanTa/Scenes/ResultDetailScene/DetailCell.swift index d7a73a4..ce3a1e6 100644 --- a/SanTa/SanTa/Scenes/ResultDetailScene/DetailCell.swift +++ b/SanTa/SanTa/Scenes/ResultDetailScene/DetailCell.swift @@ -101,11 +101,12 @@ extension DetailCell { var label = "\(title)정보. " self.stack.arrangedSubviews.forEach { let stackView = $0 as? UIStackView - guard let contentLabel = (stackView?.arrangedSubviews[0] as? UILabel)?.text, + guard var contentLabel = (stackView?.arrangedSubviews[0] as? UILabel)?.text, let contentTitleLabel = (stackView?.arrangedSubviews[1] as? UILabel)?.text else { return } + contentLabel = contentLabel == "-" ? "없음" : contentLabel label += "\(contentTitleLabel): \(contentLabel), " } self.accessibilityLabel = label diff --git a/SanTa/SanTa/Scenes/ResultDetailScene/ResultDetailSmallerInfoView.swift b/SanTa/SanTa/Scenes/ResultDetailScene/ResultDetailSmallerInfoView.swift index c927af7..3bc3d15 100644 --- a/SanTa/SanTa/Scenes/ResultDetailScene/ResultDetailSmallerInfoView.swift +++ b/SanTa/SanTa/Scenes/ResultDetailScene/ResultDetailSmallerInfoView.swift @@ -81,7 +81,6 @@ final class ResultDetailSmallerInfoView: UIView { stackView.axis = .vertical stackView.alignment = .center stackView.spacing = 5 -// stackView.distribution = .fillEqually return stackView }() @@ -90,7 +89,6 @@ final class ResultDetailSmallerInfoView: UIView { stackView.axis = .vertical stackView.alignment = .center stackView.spacing = 5 -// stackView.distribution = .fillEqually return stackView }() @@ -99,7 +97,6 @@ final class ResultDetailSmallerInfoView: UIView { stackView.axis = .vertical stackView.alignment = .center stackView.spacing = 5 -// stackView.distribution = .fillEqually return stackView }() @@ -108,7 +105,6 @@ final class ResultDetailSmallerInfoView: UIView { stackView.axis = .vertical stackView.alignment = .center stackView.spacing = 5 -// stackView.distribution = .fillEqually return stackView }() @@ -117,7 +113,6 @@ final class ResultDetailSmallerInfoView: UIView { stackView.axis = .vertical stackView.alignment = .center stackView.spacing = 5 -// stackView.distribution = .fillEqually return stackView }() @@ -126,7 +121,6 @@ final class ResultDetailSmallerInfoView: UIView { stackView.axis = .vertical stackView.alignment = .center stackView.spacing = 5 -// stackView.distribution = .fillEqually return stackView }() @@ -198,12 +192,15 @@ extension ResultDetailSmallerInfoView { guard let distance = self.distance.text, let time = self.time.text, let steps = self.steps.text, - let maxAltitude = self.maxAltitude.text, - let minAltitude = self.minAltitude.text, - let averageSpeed = self.averageSpeed.text + var maxAltitude = self.maxAltitude.text, + var minAltitude = self.minAltitude.text, + var averageSpeed = self.averageSpeed.text else { return } + maxAltitude = maxAltitude == "-" ? " 없음" : maxAltitude + minAltitude = minAltitude == "-" ? " 없음" : minAltitude + averageSpeed = averageSpeed == "-" ? " 없음" : averageSpeed self.accessibilityLabel = "기록 정보 거리: \(distance)km, 시간: \(time), 걸음: \(steps), 최고고도: \(maxAltitude), 최저고도: \(minAltitude), 평균속도: \(averageSpeed)" }