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 HomeView: View { | |
var body: some View { | |
GeometryReader { geometry in | |
VStack{ | |
HStack{ | |
Button(action: {}){ | |
Image("camera") | |
.resizable() | |
.frame(width: 30, height: 30) | |
}.padding() |
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) |
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) |
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 HomeView: View { | |
var body: some View { | |
GeometryReader { geometry in | |
VStack{ | |
HStack{ | |
Button(action: {}){ | |
Image("camera") | |
.resizable() | |
.frame(width: 30, height: 30) | |
}.padding() |
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
GeometryReader { geometry in | |
} |
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
GeometryReader { geometry in | |
VStack{ | |
} | |
} |
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
GeometryReader { geometry in | |
VStack{ | |
HStack{ | |
} | |
} | |
} |
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
ScrollView(.horizontal, showsIndicators: false) { | |
}.frame(height: 70) | |
Now, let's add a few of our recently created PreviewViewTop instances inside it: | |
ScrollView(.horizontal, showsIndicators: false) { | |
HStack { | |
PreviewViewTop() | |
PreviewViewTop() | |
PreviewViewTop() |
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
BottomView() |
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 | |
} |
OlderNewer