Skip to content

Commit

Permalink
Merge branch 'main' into featuer/#27
Browse files Browse the repository at this point in the history
  • Loading branch information
hansolnoh95 authored Jun 2, 2021
2 parents 7113433 + 1967a3a commit 7bd7994
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 18 deletions.
14 changes: 7 additions & 7 deletions Coinone-iOS/Coinone-iOS/Resource/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
Expand All @@ -25,6 +20,11 @@
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>UIAppFonts</key>
<array>
<string>NotoSansKR-Black.otf</string>
Expand All @@ -48,7 +48,7 @@
<key>UISceneDelegateClassName</key>
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
<key>UISceneStoryboardFile</key>
<string>Main</string>
<string>Georaeso</string>
</dict>
</array>
</dict>
Expand All @@ -58,7 +58,7 @@
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<string>Georaeso</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>

<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="VGR-Yk-zJZ">

<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand Down
29 changes: 22 additions & 7 deletions Coinone-iOS/Coinone-iOS/Source/Cells/StockTVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ extension StockTVC {
backView.snp.makeConstraints { make in
make.width.equalTo(335)
make.height.equalTo(60)
make.top.equalTo(contentView).inset(12)
make.top.equalTo(contentView).inset(6)
make.leading.trailing.equalTo(contentView).inset(20)
}

Expand Down Expand Up @@ -148,11 +148,26 @@ extension StockTVC {
}

extension StockTVC {
func setData(logoPath: String, title: String, subTitle: String, curValue: String, rate: String, transPrice: Int) {
titleLabel.text = title
subTitleLabel.text = subTitle
curValueLabel.text = curValue
rateLabel.text = rate
transPriceLabel.text = "\(transPrice)"
func setData(coinLogoImageName: String, coinEnglishTitle: String, coinKoreanTitle: String, coinCurrentPrice: Float, riseOrDescent: String, percentage: Float, coinTotalPrice: Float) {
let formatter = NumberFormatter().then {
$0.numberStyle = .decimal
}

self.logoImage.image = UIImage(named: coinLogoImageName)
self.titleLabel.text = coinEnglishTitle
self.subTitleLabel.text = coinKoreanTitle


if riseOrDescent == "+" {
self.curValueLabel.setLabel(text: "\(formatter.string(from: NSNumber(value: coinCurrentPrice))!)", textColor: .textRed, font: .boldSystemFont(ofSize: 14))
self.rateLabel.setLabel(text: "\(riseOrDescent)\(percentage)%", textColor: .textRed, font: .systemFont(ofSize: 14, weight: .regular))
} else {
self.curValueLabel.setLabel(text: "\(formatter.string(from: NSNumber(value: coinCurrentPrice))!)", textColor: .mainBlue, font: .boldSystemFont(ofSize: 14))
self.rateLabel.setLabel(text: "\(riseOrDescent)\(percentage)%", textColor: .mainBlue, font: .systemFont(ofSize: 14, weight: .regular))
}

self.transPriceLabel.setLabel(text: "\(formatter.string(from: NSNumber(value:coinTotalPrice))!)", textColor: .coinGray, font: .systemFont(ofSize: 14, weight: .regular))

}
}

0 comments on commit 7bd7994

Please sign in to comment.