Change Individual Element Alignment Swiftui

[Solved] Change Individual Element Alignment Swiftui | Swift - Code Explorer | yomemimo.com
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

Answers related to change individual element alignment swiftui

Code Explorer Popular Question For Swift