|
@@ -85,6 +85,7 @@ extension TSGeneratorErrorView {
|
|
|
|
|
|
func setErrorText(errorString:String) {
|
|
|
textLabel.text = errorString
|
|
|
+ textLabel.setLineSpacing(10)
|
|
|
}
|
|
|
|
|
|
func sensitiveErrorView() {
|
|
@@ -95,8 +96,7 @@ extension TSGeneratorErrorView {
|
|
|
make.width.height.equalTo(56)
|
|
|
}
|
|
|
|
|
|
- textLabel.text = "Your photo may contain nudity, gore or violence that does not comply with the health policy, please replace the photo and try again.".localized
|
|
|
-
|
|
|
+ setErrorText(errorString:"Your photo may contain nudity, gore or violence that does not comply with the health policy, please replace the photo and try again.".localized)
|
|
|
}
|
|
|
|
|
|
func generalErrorView() {
|
|
@@ -107,7 +107,7 @@ extension TSGeneratorErrorView {
|
|
|
make.width.height.equalTo(120)
|
|
|
}
|
|
|
|
|
|
- textLabel.text = "Sorry there was a slight problem with the image processing, please try again later.".localized
|
|
|
+ setErrorText(errorString:"Sorry there was a slight problem with the image processing, please try again later.".localized)
|
|
|
}
|
|
|
|
|
|
|
|
@@ -119,7 +119,7 @@ extension TSGeneratorErrorView {
|
|
|
make.width.height.equalTo(120)
|
|
|
}
|
|
|
|
|
|
- textLabel.text = "No network, please check your network and try again.".localized
|
|
|
+ setErrorText(errorString:"No network, please check your network and try again.".localized)
|
|
|
}
|
|
|
|
|
|
func generateTooMuchView() {
|
|
@@ -130,7 +130,7 @@ extension TSGeneratorErrorView {
|
|
|
make.width.height.equalTo(56)
|
|
|
}
|
|
|
|
|
|
- textLabel.text = "Your photo may contain nudity, gore or violence that does not comply with the health policy, please replace the photo and try again.".localized
|
|
|
+ setErrorText(errorString:"Your photo may contain nudity, gore or violence that does not comply with the health policy, please replace the photo and try again.".localized)
|
|
|
}
|
|
|
|
|
|
|
|
@@ -141,7 +141,8 @@ extension TSGeneratorErrorView {
|
|
|
errorImageView.snp.updateConstraints { make in
|
|
|
make.width.height.equalTo(56)
|
|
|
}
|
|
|
- textLabel.text = "You have used all your video effect generations".localized
|
|
|
+
|
|
|
+ setErrorText(errorString:"You have used all your video effect generations".localized)
|
|
|
}
|
|
|
|
|
|
}
|