Skip to content

Commit

Permalink
Merge branch 'main' into feature/#31
Browse files Browse the repository at this point in the history
  • Loading branch information
hansolnoh95 authored Jun 10, 2021
2 parents 1df4384 + fcb9443 commit 8aff7d8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Coinone-iOS/Coinone-iOS/Source/Cells/StockTVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ extension StockTVC {
}

extension StockTVC {
func setData(coinLogoImageName: String, coinEnglishTitle: String, coinKoreanTitle: String, coinCurrentPrice: Float, riseOrDescent: String, percentage: Float, coinTotalPrice: Float) {
func setData(coinLogoImageName: String, coinEnglishTitle: String, coinKoreanTitle: String, coinCurrentPrice: Float, riseOrDescent: String, percentage: Double, coinTotalPrice: Float) {
let formatter = NumberFormatter().then {
$0.numberStyle = .decimal
}
Expand Down
7 changes: 4 additions & 3 deletions Coinone-iOS/Coinone-iOS/Source/Models/StockModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ struct StockModel {
var logoImage: String!
var title: String!
var subTitle: String!
var curValue: String!
var rate: String!
var transPrice: Int!
var curValue: Float!
var riseOrDescent: String
var rate: Double!
var transPrice: Float!
}
22 changes: 13 additions & 9 deletions Coinone-iOS/Coinone-iOS/Source/ViewControllers/GeoraesoVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ class GeoraesoVC: UIViewController {

tableView.backgroundColor = .tableViewGray
tableView.tableFooterView = UIView(frame: .zero)
tableView.separatorStyle = .none

tableView.register(StockTVC.self, forCellReuseIdentifier: StockTVC.identifier)

Expand Down Expand Up @@ -306,23 +307,26 @@ class GeoraesoVC: UIViewController {
// MARK: - DummyData
func setDummyData() {
stockList.append(contentsOf: [
StockModel(logoImage: "",
StockModel(logoImage: "coinLogo",
title: "XRP",
subTitle: "리플",
curValue: "1,625",
rate: "-0.37%",
curValue: 1625,
riseOrDescent: "-",
rate: 0.37,
transPrice: 2059),
StockModel(logoImage: "",
StockModel(logoImage: "coinLogo",
title: "XRP",
subTitle: "리플",
curValue: "1,500",
rate: "-0.37%",
curValue: 1625,
riseOrDescent: "-",
rate: 0.37,
transPrice: 2489),
StockModel(logoImage: "",
StockModel(logoImage: "coinLogo",
title: "XRP",
subTitle: "리플",
curValue: "1,000",
rate: "-0.37%",
curValue: 1625,
riseOrDescent: "-",
rate: 0.37,
transPrice: 1280)])
}
}
Expand Down

0 comments on commit 8aff7d8

Please sign in to comment.