Skip to content

Instantly share code, notes, and snippets.

View benben2019's full-sized avatar
🎯
Focusing

benben benben2019

🎯
Focusing
View GitHub Profile
@benben2019
benben2019 / SwiftUILayoutExample.swift
Last active January 13, 2022 04:32
SwiftUI layout example
struct LayoutExampleView: View {
var body: some View {
VStack {
EventHeader()
ImagePlaceholder()
// .layoutPriority(-1)
.frame(minHeight: 100)
Text(makeDescription())
.layoutPriority(1)
Spacer()