We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When aligning popup's content to .leading or .trailing in a VStack they should be aligned correctly in the Popup.
.leading
.trailing
VStack
When calling the popup, the alignment does not work.
My popup struct:
struct TopCustomPopup: TopPopup { @Environment(\.colorScheme) var colorScheme let isError: Bool let message: LocalizedStringKey var body: some View { VStack(alignment: .leading) { HStack { ResizableBundledImage( imageName: isError ? "cross-circled" : "exclamation-triangle", imageSize: 25, bundle: .radixUI ) Text(message) .font(.custom(.vazir, .caption, .medium)) } .padding(.horizontal, 7.5) .padding(.bottom, 7.5) } .foregroundStyle(colorScheme == .light ? Color.sand12 : Color.sand2) .frame(minHeight: 45) } func configurePopup(config: TopPopupConfig) -> TopPopupConfig { config .cornerRadius(0) .heightMode(.auto) } }
This issue is self explanatory.
SDK 4.0.1 Xcode 16.2 Operating System: iOS 18.2.1 Device: iPhone 12 Pro Max
The text was updated successfully, but these errors were encountered:
FulcrumOne
No branches or pull requests
Prerequisites
Expected Behavior
When aligning popup's content to
.leading
or.trailing
in aVStack
they should be aligned correctly in the Popup.Current Behavior
When calling the popup, the alignment does not work.
Steps to Reproduce
VStack
.leading
or.trailing
alignmentCode Sample
My popup struct:
Screenshots
This issue is self explanatory.
Context
SDK 4.0.1
Xcode 16.2
Operating System: iOS 18.2.1
Device: iPhone 12 Pro Max
The text was updated successfully, but these errors were encountered: