Skip to content

Instantly share code, notes, and snippets.

@paulhimes
paulhimes / OnLayout Tutorial 01.swift
Last active March 9, 2021 02:02
OnLayout Tutorial 01
struct MainView: View {
var body: some View {
ScrollView {
HStack {
Spacer()
Text("ScrollView Content")
.multilineTextAlignment(.center)
.foregroundColor(.white)
.background(Color.blue.brightness(0.2))
Spacer()
extension DateFormatter {
static var exifDateFormatter: DateFormatter = {
let formatter = DateFormatter()
formatter.dateFormat = "yyyy':'MM':'dd' 'HH':'mm':'ss'.'SSS"
formatter.locale = Locale(identifier: "en_US_POSIX")
formatter.timeZone = TimeZone.current
return formatter
}()
}