Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. struct PreviewDetailView: View {
  2.  
  3. let preview: Preview
  4.  
  5. var body: some View {
  6. VStack(alignment: .leading){
  7. HStack{
  8. Image("logo-social")
  9. .resizable()
  10. .frame(width: 60, height: 60)
  11. .clipShape(Circle())
  12. .shadow(radius: 3)
  13. .overlay(Circle().stroke(Color.pink, lineWidth: 1))
  14. .padding(.leading, 5)
  15.  
  16. VStack(alignment: .leading){
  17. Text("Text upperside").font(.headline).foregroundColor(lightBlueColor)
  18. Text("Text downside").foregroundColor(Color(.lightGray)).font(.subheadline)
  19. }
  20.  
  21. Spacer()
  22.  
  23. Button(action: {}){
  24. Image("threeDots")
  25. .resizable()
  26. .frame(width: 20, height: 20)
  27. }
  28. .padding(.trailing, 5)
  29. }
  30.  
  31. Image(preview.imageUrl)
  32. .resizable()
  33. .frame(width: 415, height: 415)
  34.  
  35. HStack{
  36. Button(action: {}){
  37. Image("heart")
  38. .resizable()
  39. .frame(width: 30, height: 30)
  40. }.padding(.leading, 5)
  41.  
  42. Button(action: {}){
  43. Image("comment")
  44. .resizable()
  45. .frame(width: 30, height: 30)
  46. }.padding(.leading, 5)
  47.  
  48. Button(action: {}){
  49. Image("paper-plane")
  50. .resizable()
  51. .frame(width: 30, height: 30)
  52. }.padding(.leading, 5)
  53.  
  54. Spacer()
  55.  
  56. Button(action: {}){
  57. Image("flag")
  58. .resizable()
  59. .frame(width: 30, height: 30)
  60. }.padding(.trailing, 5)
  61. }
  62. }
  63. }
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement