Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

Rev 8 | Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
//
2
//  CommentAndRatingImageView.swift
3
//  twogetskills
4
//
5
//  Created by Efrain Yanez Recanatini on 7/28/22.
6
//
7
 
8
import SwiftUI
9
 
10
struct CommentAndRatingImageView: View {
11
    var body: some View {
12
 
13
            Group {
14
                HStack {
15
                    Spacer()
16
 
17
                    Image("logo")
18
                        .resizable()
19
                        .aspectRatio(contentMode: .fit)
20
                        .background(Color("color_window_background"))
21
                        .frame(width: 93, height: 140, alignment: .center)
22
 
23
                    Spacer()
24
                }
25
            }
26
            .background(Color("color_capsule_comment_rating_image_background"))
27
            .cornerRadius(8)
28
            .overlay(
29
                RoundedRectangle(cornerRadius: 8)
30
                    .stroke(Color("color_capsule_comment_rating_image_border"), lineWidth:1)
31
            )
32
            .shadow(color: Color("color_capsule_comment_rating_image_shadow"), radius:4, x: 5, y: 5)
33
            . frame(width: UIScreen.main.bounds.width - 40, height: 151)
34
 
35
    }
36
}
37
 
38
struct CommentAndRatingImageView_Previews: PreviewProvider {
39
    static var previews: some View {
40
        CommentAndRatingImageView()
41
    }
42
}