@@ -12,28 +12,34 @@ struct PuraceErrorView: View {
12
12
13
13
var body : some View {
14
14
GeometryReader { _ in
15
- VStack ( alignment : . center ) {
15
+ HStack {
16
16
Spacer ( minLength: 0 )
17
- Image ( " error " , bundle: . module)
18
- VStack ( spacing: 17 ) {
19
- PuraceTextView ( " Ups " , fontSize: 22 , weight: . medium)
20
- PuraceTextView ( " Parece que ha ocurrido un error. No te preocupes, es nuestra culpa. " , fontSize: 14 , textColor: PuraceStyle . Color. N2)
21
- . multilineTextAlignment ( . center)
22
- HStack ( spacing: 3 ) {
23
- PuraceTextView ( " Código: " , textColor: PuraceStyle . Color. N4)
24
- PuraceTextView ( " 12 " , weight: . medium)
17
+
18
+ VStack ( alignment: . center) {
19
+ Spacer ( minLength: 0 )
20
+ Image ( " error " , bundle: . module)
21
+ VStack ( alignment: . center, spacing: 17 ) {
22
+ PuraceTextView ( " Ups " , fontSize: 22 , weight: . medium)
23
+ PuraceTextView ( " Parece que ha ocurrido un error. No te preocupes, es nuestra culpa. " , fontSize: 14 , textColor: PuraceStyle . Color. N2)
24
+ . multilineTextAlignment ( . center)
25
+ HStack ( spacing: 3 ) {
26
+ PuraceTextView ( " Código: " , textColor: PuraceStyle . Color. N4)
27
+ PuraceTextView ( " 12 " , weight: . medium)
28
+ }
29
+ . padding ( . horizontal, 20 )
30
+ . padding ( . vertical, 4 )
31
+ . background ( Color . white)
32
+ . cornerRadius ( 20 )
25
33
}
26
- . padding ( . horizontal, 20 )
27
- . padding ( . vertical, 4 )
28
- . background ( Color . white)
29
- . cornerRadius ( 20 )
30
- }
31
- Spacer ( minLength: 0 )
32
- if let onRetryTap {
33
- PuraceButtonView ( " Reintentar " ) {
34
- onRetryTap ( )
34
+ Spacer ( minLength: 0 )
35
+ if let onRetryTap {
36
+ PuraceButtonView ( " Reintentar " ) {
37
+ onRetryTap ( )
38
+ }
35
39
}
40
+ Spacer ( minLength: 0 )
36
41
}
42
+
37
43
Spacer ( minLength: 0 )
38
44
}
39
45
. padding ( . horizontal, 50 )
0 commit comments