Skip to content

Commit

Permalink
[Refactor] #381 기록정보 -로 화면 표시일 때 VoiceOver 없음 으로 실행
Browse files Browse the repository at this point in the history
  • Loading branch information
lou0124 committed Dec 2, 2021
1 parent c93fc27 commit fbdb160
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
3 changes: 2 additions & 1 deletion SanTa/SanTa/Scenes/ResultDetailScene/DetailCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ final class ResultDetailSmallerInfoView: UIView {
stackView.axis = .vertical
stackView.alignment = .center
stackView.spacing = 5
// stackView.distribution = .fillEqually
return stackView
}()

Expand All @@ -90,7 +89,6 @@ final class ResultDetailSmallerInfoView: UIView {
stackView.axis = .vertical
stackView.alignment = .center
stackView.spacing = 5
// stackView.distribution = .fillEqually
return stackView
}()

Expand All @@ -99,7 +97,6 @@ final class ResultDetailSmallerInfoView: UIView {
stackView.axis = .vertical
stackView.alignment = .center
stackView.spacing = 5
// stackView.distribution = .fillEqually
return stackView
}()

Expand All @@ -108,7 +105,6 @@ final class ResultDetailSmallerInfoView: UIView {
stackView.axis = .vertical
stackView.alignment = .center
stackView.spacing = 5
// stackView.distribution = .fillEqually
return stackView
}()

Expand All @@ -117,7 +113,6 @@ final class ResultDetailSmallerInfoView: UIView {
stackView.axis = .vertical
stackView.alignment = .center
stackView.spacing = 5
// stackView.distribution = .fillEqually
return stackView
}()

Expand All @@ -126,7 +121,6 @@ final class ResultDetailSmallerInfoView: UIView {
stackView.axis = .vertical
stackView.alignment = .center
stackView.spacing = 5
// stackView.distribution = .fillEqually
return stackView
}()

Expand Down Expand Up @@ -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)"
}
Expand Down

0 comments on commit fbdb160

Please sign in to comment.