Skip to content

Commit f9d1fa2

Browse files
authored
Merge pull request #137 from mash-up-kr/qa/1.1.0/main
1.1.0 release
2 parents 75086c7 + 5042503 commit f9d1fa2

File tree

83 files changed

+1912
-582
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+1912
-582
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "popup_ground.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"filename" : "[email protected]",
10+
"idiom" : "universal",
11+
"scale" : "2x"
12+
},
13+
{
14+
"filename" : "[email protected]",
15+
"idiom" : "universal",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"author" : "xcode",
21+
"version" : 1
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "icon_send_card.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"filename" : "[email protected]",
10+
"idiom" : "universal",
11+
"scale" : "2x"
12+
},
13+
{
14+
"filename" : "[email protected]",
15+
"idiom" : "universal",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"author" : "xcode",
21+
"version" : 1
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "img_send_card_tooltip.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"filename" : "[email protected]",
10+
"idiom" : "universal",
11+
"scale" : "2x"
12+
},
13+
{
14+
"filename" : "[email protected]",
15+
"idiom" : "universal",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"author" : "xcode",
21+
"version" : 1
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "icon_bubble_tail_exit.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"filename" : "[email protected]",
10+
"idiom" : "universal",
11+
"scale" : "2x"
12+
},
13+
{
14+
"filename" : "[email protected]",
15+
"idiom" : "universal",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"author" : "xcode",
21+
"version" : 1
22+
}
23+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "[email protected]",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"filename" : "[email protected]",
10+
"idiom" : "universal",
11+
"scale" : "2x"
12+
},
13+
{
14+
"filename" : "[email protected]",
15+
"idiom" : "universal",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"author" : "xcode",
21+
"version" : 1
22+
}
23+
}

Core/DesignSystem/Sources/DesignSystem/Resources/Colors.xcassets/Primary Color/Primary.colorset/Contents.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"color-space" : "srgb",
2424
"components" : {
2525
"alpha" : "1.000",
26-
"blue" : "0.094",
27-
"green" : "0.188",
28-
"red" : "0.267"
26+
"blue" : "0x17",
27+
"green" : "0x2F",
28+
"red" : "0x44"
2929
}
3030
},
3131
"idiom" : "universal"

Core/DesignSystem/Sources/DesignSystem/Sources/Assets/Assets.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,12 @@ public enum Assets: String {
9090
case icon_bubble_not_mate
9191
case icon_mypage_brown
9292
case icon_info
93+
case popup_ground
9394
case home_ground
9495
case home_background
9596
case icon_airplane
9697
case icon_push_bee
98+
case icon_send_card
9799
case icon_certificated
98100
case icon_failed
99101
case icon_flower_seed
@@ -139,6 +141,8 @@ public enum Assets: String {
139141
case flowerPopup_background
140142
case icon_challenge_progress
141143
case icon_title_arrow
144+
case update_icon
145+
case img_send_card_tooltip
142146

143147
public var image: UIImage {
144148
return .init(named: self.rawValue, in: Bundle.module, with: nil)!

Core/DesignSystem/Sources/DesignSystem/Sources/Component/BottomSheet/Layout/SelfSizingScrollView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import UIKit
99

1010
public final class SelfSizingScrollView: UIScrollView {
11-
private var maxHeight: CGFloat = UIScreen.main.bounds.height * 0.67
11+
private var maxHeight: CGFloat = UIScreen.main.bounds.height
1212

1313
public override var intrinsicContentSize: CGSize {
1414
CGSize(width: contentSize.width,
@@ -20,9 +20,9 @@ public final class SelfSizingScrollView: UIScrollView {
2020
invalidateIntrinsicContentSize()
2121
}
2222

23-
public convenience init(maxHeight: CGFloat) {
23+
public convenience init(maxHeightRatio: CGFloat = 0.67) {
2424
self.init()
25-
self.maxHeight = maxHeight
25+
self.maxHeight *= maxHeightRatio
2626
}
2727

2828
public override init(frame: CGRect) {

Core/DesignSystem/Sources/DesignSystem/Sources/Component/NavigationBar/TTNavigationBar.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,20 @@ public final class TTNavigationBar: UIView {
5959
/// TTNavigationBar(title: "마이페이지", rightButtonImage: .asset(.icon_info))
6060
/// ```
6161
public convenience init(title: String?,
62-
rightButtonImage: UIImage?) {
62+
rightButtonImage: UIImage?,
63+
rightButtonText: String? = nil) {
6364
self.init()
6465
if let _title = title, _title == "TwoToo" {
6566
self.logoImageView.isHidden = false
6667
} else {
6768
self.titleLabel.text = title
6869
}
6970
self.rightButton.setImage(rightButtonImage, for: .normal)
71+
if let text = rightButtonText {
72+
self.rightButton.setTitle(text, for: .normal)
73+
self.rightButton.titleLabel?.font = .h4
74+
self.rightButton.setTitleColor(.primary, for: .normal)
75+
}
7076
}
7177

7278
required init?(coder: NSCoder) {

Scene/HomeScene/Sources/HomeScene/Views/Flower/Component/SpeechBubbleView.swift renamed to Core/DesignSystem/Sources/DesignSystem/Sources/Component/SpeechBubbleView.swift

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,28 @@
66
//
77

88
import UIKit
9-
import DesignSystem
109

1110
/// 말풍선 뷰
1211
///
1312
/// Parameter
1413
/// - title : 말풍선 텍스트
1514
/// - tailPosition : 말풍선 꼬리 위치 (좌 / 우)
16-
final class SpeechBubbleView: UIView {
15+
final public class SpeechBubbleView: UIView {
1716

1817
private var _backgroundColor: UIColor = .white
1918
private var tailCoordinate: CGFloat = 0.5
19+
private var tailPosition: TailPosition = .my
2020

21-
enum TailPosition{
21+
public enum TailPosition{
22+
/// 홈 - 파트너 말풍선
2223
case partner
24+
/// 홈 - 내 말풍선
2325
case my
26+
/// 챌린지 대기중 - 나가기 말풍선
27+
case exit
2428
}
2529

26-
let titleLabel: UILabel = {
30+
public let titleLabel: UILabel = {
2731
let v = UILabel()
2832
v.font = .body1
2933
v.textAlignment = .center
@@ -38,8 +42,9 @@ final class SpeechBubbleView: UIView {
3842
return v
3943
}()
4044

41-
init(tailPosition: TailPosition) {
45+
public init(tailPosition: TailPosition) {
4246
super.init(frame: .zero)
47+
self.tailPosition = tailPosition
4348
switch tailPosition {
4449
case .partner:
4550
self._backgroundColor = UIColor.mainLightPink
@@ -49,6 +54,10 @@ final class SpeechBubbleView: UIView {
4954
self._backgroundColor = UIColor.second01
5055
self.tailCoordinate = 1.5
5156
self.tailImageView.image = UIImage.asset(.icon_bubble_tail_my)
57+
case .exit:
58+
self._backgroundColor = UIColor.second01
59+
// self.tailImageView.image = UIImage(resource: .iconBubbleTailExit)
60+
self.tailCoordinate = 1.7
5261
}
5362
self.layout()
5463
self.attribute()
@@ -65,18 +74,27 @@ final class SpeechBubbleView: UIView {
6574
self.titleLabel.snp.makeConstraints { make in
6675
make.edges.equalToSuperview().inset(10)
6776
}
68-
self.tailImageView.snp.makeConstraints { make in
69-
make.bottom.equalToSuperview().offset(10)
70-
make.centerX.equalToSuperview().multipliedBy(self.tailCoordinate)
77+
switch tailPosition {
78+
case .partner, .my:
79+
self.tailImageView.snp.makeConstraints { make in
80+
make.bottom.equalToSuperview().offset(10)
81+
make.centerX.equalToSuperview().multipliedBy(self.tailCoordinate)
82+
}
83+
case .exit:
84+
self.tailImageView.snp.makeConstraints { make in
85+
make.top.equalToSuperview().offset(-10)
86+
make.centerX.equalToSuperview().multipliedBy(self.tailCoordinate)
87+
}
7188
}
89+
7290
}
7391

7492
func attribute() {
7593
self.layer.cornerRadius = 8
7694
self.backgroundColor = _backgroundColor
7795
}
7896

79-
func configure(title: String) {
97+
public func configure(title: String) {
8098
if title.count > 10 {
8199
let index = title.index(title.startIndex, offsetBy: 10)
82100
let firstPart = title[..<index]

Scene/HomeScene/Sources/HomeScene/Views/Common/TTProgressBar.swift renamed to Core/DesignSystem/Sources/DesignSystem/Sources/Component/TTProgressBar.swift

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,22 @@
77

88
import UIKit
99

10-
final class TTProgressBar: UIView {
10+
public protocol TTProgressViewModelProtocol {
11+
/// 상대방 이름 텍스트
12+
var partnerNameText: String { get set }
13+
/// 내 이름 텍스트
14+
var myNameText: String { get set }
15+
/// 상대방 퍼센테이지 텍스트
16+
var partnerPercentageText: String { get set }
17+
/// 내 퍼센테이지 텍스트
18+
var myPercentageText: String { get set }
19+
/// 상대방 퍼센테이지 넘버
20+
var partnerPercentageNumber: Double { get set }
21+
/// 내 퍼센테이지 넘버
22+
var myPercentageNumber: Double { get set }
23+
}
24+
25+
public final class TTProgressBar: UIView {
1126

1227
// MARK: - My UI
1328
private lazy var partnerNicknameLabel: UILabel = {
@@ -137,7 +152,7 @@ final class TTProgressBar: UIView {
137152
self.layer.cornerRadius = 15
138153
}
139154

140-
func configureInProgress(viewModel: Home.ViewModel.ChallengeInProgressViewModel.ProgressViewModel) {
155+
public func configure(viewModel: TTProgressViewModelProtocol) {
141156
self.myNicknameLabel.text = viewModel.myNameText
142157
self.myPercentLabel.text = viewModel.myPercentageText
143158
self.partnerNicknameLabel.text = viewModel.partnerNameText
@@ -146,16 +161,6 @@ final class TTProgressBar: UIView {
146161
partner: viewModel.partnerPercentageNumber)
147162
}
148163

149-
func configureCompleted(viewModel: Home.ViewModel.ChallengeCompletedViewModel.ProgressViewModel) {
150-
self.myNicknameLabel.text = viewModel.myNameText
151-
self.myPercentLabel.text = viewModel.myPercentageText
152-
self.partnerNicknameLabel.text = viewModel.partnerNameText
153-
self.partnerPercentLabel.text = viewModel.partnerPercentageText
154-
self.configurePercent(my: viewModel.myPercentageNumber,
155-
partner: viewModel.partnerPercentageNumber)
156-
}
157-
158-
159164
private func configurePercent(my: Double, partner: Double) {
160165
if my == 0 {
161166
self.myPercentView.snp.remakeConstraints { make in

Core/DesignSystem/Sources/DesignSystem/Sources/Font/UIFont+.swift

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,31 @@ import UIKit
99

1010
extension UIFont {
1111

12+
/// fontSize : 28
1213
public static var h1: UIFont {
1314
return .omyupretty(size: ._28)
1415
}
15-
16+
/// fontSize : 24
1617
public static var h2: UIFont {
1718
return .omyupretty(size: ._24)
1819
}
19-
20+
/// fontSize : 20
2021
public static var h3: UIFont {
2122
return .omyupretty(size: ._20)
2223
}
23-
24+
/// fontSize : 18
2425
public static var h4: UIFont {
2526
return .omyupretty(size: ._18)
2627
}
27-
28+
/// fontSize : 16
2829
public static var body1: UIFont {
2930
return .omyupretty(size: ._16)
3031
}
31-
32+
/// fontSize : 15
3233
public static var body2: UIFont {
3334
return .omyupretty(size: ._15)
3435
}
35-
36+
/// fontSize : 12
3637
public static var body3: UIFont {
3738
return .omyupretty(size: ._12)
3839
}

Core/Local/Sources/Local/LocalDataSource.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ public protocol LocalDataSourceProtocol {
2121
func remove(key: String)
2222
}
2323

24-
public final class LocalDataSource: LocalDataSourceProtocol {
24+
public protocol ResetLocalDataSourceProtocol {
25+
func removeAll()
26+
}
27+
28+
public final class LocalDataSource: LocalDataSourceProtocol, ResetLocalDataSourceProtocol {
2529

2630
public init() {}
2731

0 commit comments

Comments
 (0)