Post

Replies

Boosts

Views

Activity

Reply to GeometryReader alignment
Yes, this works nicely, just add a second frame. import SwiftUI struct ContentView: View {     var body: some View {         GeometryReader { geo in             Image("Example")                 .resizable()                 .scaledTofit()                 .frame (width: geo.size.width * 0.8)                 .frame (width: geo.size.width, height: geo.size.height)         }     } Hope this helps.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’22