Created
September 26, 2019 12:35
-
-
Save alexvenom/af0da956fb43954fe3b47368cc9d4710 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} | |
Image(preview.imageUrl) | |
.resizable() | |
.frame(width: 415, height: 415) | |
HStack{ | |
Button(action: {}){ | |
Image("heart") | |
.resizable() | |
.frame(width: 30, height: 30) | |
}.padding(.leading, 5) | |
Button(action: {}){ | |
Image("comment") | |
.resizable() | |
.frame(width: 30, height: 30) | |
}.padding(.leading, 5) | |
Button(action: {}){ | |
Image("paper-plane") | |
.resizable() | |
.frame(width: 30, height: 30) | |
}.padding(.leading, 5) | |
Spacer() | |
Button(action: {}){ | |
Image("flag") | |
.resizable() | |
.frame(width: 30, height: 30) | |
}.padding(.trailing, 5) | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment