Alignment In SwiftUI

188 views Asked by At

I'm new to SwiftUI. I'm designing a widget for size systemMedium. I'm getting stuck in spacing, If I reduce the size of the Violet Container, Then the rest UI is not aligning properly Here is My Code

case .systemMedium:
    ZStack {
        Color("Yellow")
        HStack(alignment: .center) {
            PercentageMediumView()
                .padding(.trailing, 80.0)
            Spacer(minLength: 0)
            Last14MediumView()
        
        }
    }

Here is what it looks like, My Code Design I need to eliminate that space(from arrow)

What I need Design My Actual Design Needed

0

There are 0 answers