캔 충전
- 탭 순서 변경 ( pg, 인 앱 결제 순으로 )
This commit is contained in:
@@ -17,7 +17,7 @@ struct CanChargeView: View {
|
||||
@StateObject var storeManager = StoreManager()
|
||||
@StateObject var viewModel = CanChargeViewModel()
|
||||
|
||||
@State var currentTab: CanChargeCurrentTab = .iap
|
||||
@State var currentTab: CanChargeCurrentTab = .pg
|
||||
|
||||
let refresh: () -> Void
|
||||
let afterCompletionToGoBack: Bool
|
||||
@@ -146,22 +146,6 @@ struct CanChargeTabView: View {
|
||||
HStack(spacing: 0) {
|
||||
let tabWidth = screenSize().width / 2
|
||||
|
||||
CanChargeTab(
|
||||
title: "인 앱 결제",
|
||||
action: {
|
||||
if currentTab != .iap {
|
||||
currentTab = .iap
|
||||
}
|
||||
},
|
||||
color: {
|
||||
currentTab == .iap ?
|
||||
Color(hex: "eeeeee") :
|
||||
Color(hex: "777777")
|
||||
},
|
||||
width: tabWidth,
|
||||
isShowDivider: { currentTab == .iap }
|
||||
)
|
||||
|
||||
CanChargeTab(
|
||||
title: "PG",
|
||||
action: {
|
||||
@@ -171,17 +155,33 @@ struct CanChargeTabView: View {
|
||||
},
|
||||
color: {
|
||||
currentTab == .pg ?
|
||||
Color(hex: "eeeeee") :
|
||||
Color(hex: "777777")
|
||||
Color.grayee :
|
||||
Color.gray77
|
||||
},
|
||||
width: tabWidth,
|
||||
isShowDivider: { currentTab == .pg }
|
||||
)
|
||||
|
||||
CanChargeTab(
|
||||
title: "인 앱 결제",
|
||||
action: {
|
||||
if currentTab != .iap {
|
||||
currentTab = .iap
|
||||
}
|
||||
},
|
||||
color: {
|
||||
currentTab == .iap ?
|
||||
Color.grayee :
|
||||
Color.gray77
|
||||
},
|
||||
width: tabWidth,
|
||||
isShowDivider: { currentTab == .iap }
|
||||
)
|
||||
}
|
||||
|
||||
Rectangle()
|
||||
.frame(width: screenSize().width, height: 1)
|
||||
.foregroundColor(Color(hex: "909090").opacity(0.5))
|
||||
.foregroundColor(Color.gray90.opacity(0.5))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -207,7 +207,7 @@ struct CanChargeTab: View {
|
||||
|
||||
Rectangle()
|
||||
.frame(width: width, height: 3)
|
||||
.foregroundColor(Color(hex: "9970ff").opacity(isShowDivider() ? 1 : 0))
|
||||
.foregroundColor(Color.button.opacity(isShowDivider() ? 1 : 0))
|
||||
}
|
||||
.frame(height: 50)
|
||||
}
|
||||
|
Reference in New Issue
Block a user