Closed SeongKookKIM closed 1 month ago
private let timerRecord = RecordContainer(title: "Timer", recordText: "00:00", view: "record")
private let calorieRecord = RecordContainer(title: "Calories", recordText: "0 kcal", view: "summary")
3. 텍스트 업데이트 시 updateRecordText()함수 생성, formattedWithThousandsSeparator로 1,000 단위(Double -> Stirng) ```Swift timerRecord.updateRecordText(text: viewModel.timer) cadenceRecord.updateRecordText(text: "\(viewModel.cadence.formattedWithThousandsSeparator()) RPM") speedRecord.updateRecordText(text: "\(viewModel.speed.formattedWithThousandsSeparator()) Km/h") distanceRecord.updateRecordText(text: "\(viewModel.distance.formattedWithThousandsSeparator()) Km") calorieRecord.updateRecordText(text: "\(viewModel.calorie.formattedWithThousandsSeparator()) Kcal")
private let calorieRecord = RecordContainer(title: "Calories", recordText: "0 kcal", view: "summary")