Skip to content

Instantly share code, notes, and snippets.

@alexvenom
Created September 26, 2019 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexvenom/71673c5ce6061115767097f4f7e04fb9 to your computer and use it in GitHub Desktop.
Save alexvenom/71673c5ce6061115767097f4f7e04fb9 to your computer and use it in GitHub Desktop.
struct PreviewDetailView: View {
let preview: Preview
var body: some View {
VStack(alignment: .leading){
HStack{
Image("logo-social")
.resizable()
.frame(width: 60, height: 60)
.clipShape(Circle())
.shadow(radius: 3)
.overlay(Circle().stroke(Color.pink, lineWidth: 1))
.padding(.leading, 5)
VStack(alignment: .leading){
Text("Text upperside").font(.headline).foregroundColor(lightBlueColor)
Text("Text downside").foregroundColor(Color(.lightGray)).font(.subheadline)
}
Spacer()
Button(action: {}){
Image("threeDots")
.resizable()
.frame(width: 20, height: 20)
}
.padding(.trailing, 5)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment