Question : change individual element alignment swiftui
Answered by : cheerful-crossbill-rc6iof0xq8qt
struct ContentView: View { var body: some View { HStack(alignment: .bottom) { Image(systemName: "zzz") .alignmentGuide(.bottom) { d in d[.bottom] + 8 } Text("Sleep") } }
}
Source : https://swiftwithmajid.com/2020/03/11/alignment-guides-in-swiftui/ | Last Update : Wed, 21 Apr 21