|
@@ -20,12 +20,15 @@ struct TSPurchaseVideoTimesAlertView :View {
|
|
|
VStack {
|
|
|
Spacer().frame(height: 24)
|
|
|
Text("Limit Reached".localized)
|
|
|
+ .multilineTextAlignment(.center)
|
|
|
.font(.font(size: 22,weight: .medium))
|
|
|
.foregroundColor(.white)
|
|
|
.padding(EdgeInsets(top: 0, leading: 10, bottom: 0, trailing: 10))
|
|
|
|
|
|
Spacer().frame(height: 16)
|
|
|
Text(limit)
|
|
|
+ .font(.font(size: 14,weight: .regular))
|
|
|
+ .multilineTextAlignment(.center)
|
|
|
.foregroundColor(.white.opacity(0.7))
|
|
|
.padding(EdgeInsets(top: 0, leading: 10, bottom: 0, trailing: 10))
|
|
|
|
|
@@ -41,7 +44,7 @@ struct TSPurchaseVideoTimesAlertView :View {
|
|
|
viewModel.selectedType = .purchase(.videoNum2)
|
|
|
}
|
|
|
TSPurchaseVideoTimesRecView()
|
|
|
- .offset(x:-30,y:-14)
|
|
|
+ .offset(x:-12,y:-14)
|
|
|
}
|
|
|
TSPurchaseVideoTimesCellView(type: .purchase(.videoNum3), selectedType: $viewModel.selectedType)
|
|
|
.onTapGesture {
|
|
@@ -49,7 +52,7 @@ struct TSPurchaseVideoTimesAlertView :View {
|
|
|
}
|
|
|
}).multilineTextAlignment(.center).font(.font(size: 16,weight:.regular)).foregroundColor(.white)
|
|
|
|
|
|
- Spacer().frame(height: 44)
|
|
|
+ Spacer().frame(height: 28)
|
|
|
|
|
|
|
|
|
Button {
|
|
@@ -90,6 +93,7 @@ struct TSPurchaseVideoTimesAlertView :View {
|
|
|
TSPurchaseVideoTextLineView(image: .purchaseVideoTimesCheck, text: "Uses never expire and can be purchased repeatedly".localized)
|
|
|
TSPurchaseVideoTextLineView(image: .purchaseVideoTimesCheck, text: "All unused uses will be lost if the app is uninstalled".localized)
|
|
|
})
|
|
|
+ .foregroundColor(Color.hex("#FCE5FF").opacity(0.8))
|
|
|
.padding(EdgeInsets(top: 0, leading: 10, bottom: 0, trailing: 10))
|
|
|
|
|
|
Spacer().frame(height: 24 + k_Height_safeAreaInsetsBottom())
|
|
@@ -100,9 +104,14 @@ struct TSPurchaseVideoTimesAlertView :View {
|
|
|
}
|
|
|
.padding(.horizontal,16)
|
|
|
.background(
|
|
|
-// Image(.purchaseVideoTimesAlertBj)
|
|
|
-// .resizable() // 允许调整大小
|
|
|
-// .scaledToFill()
|
|
|
+// GeometryReader { geometry in
|
|
|
+// Image(.purchaseVideoTimesAlertBj)
|
|
|
+// .resizable()
|
|
|
+// .scaledToFill()
|
|
|
+// .frame(width: geometry.size.width)
|
|
|
+// // 关键:限制高度不超过内容高度
|
|
|
+// .frame(height: geometry.size.height)
|
|
|
+// }
|
|
|
Color.hex("#261840").cornerRadius([.topLeading,.topTrailing], 20)
|
|
|
)
|
|
|
|