Skip to content

Instantly share code, notes, and snippets.

View bottombar.swift
struct HomeView: View {
var body: some View {
GeometryReader { geometry in
VStack{
HStack{
Button(action: {}){
Image("camera")
.resizable()
.frame(width: 30, height: 30)
}.padding()
View PreviewDetailView.swift
struct PreviewDetailView: View {
let preview: Preview
var body: some View {
VStack(alignment: .leading){
HStack{
Image("logo-social")
.resizable()
.frame(width: 60, height: 60)
View Image.swift
struct PreviewDetailView: View {
let preview: Preview
var body: some View {
VStack(alignment: .leading){
HStack{
Image("logo-social")
.resizable()
.frame(width: 60, height: 60)
View HomeView.swift
struct HomeView: View {
var body: some View {
GeometryReader { geometry in
VStack{
HStack{
Button(action: {}){
Image("camera")
.resizable()
.frame(width: 30, height: 30)
}.padding()
View home0.swift
GeometryReader { geometry in
}
View home1.swift
GeometryReader { geometry in
VStack{
}
}
View home2.swift
GeometryReader { geometry in
VStack{
HStack{
}
}
}
View home3.swift
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()
View home5.swift
struct PreviewDetailView: View {
let preview: Preview
}
You can’t perform that action at this time.