I’m trying to build an image carousel similar to the one in the App Store, but I'm a facing a lay-out issue.The carousel should:Automatically adjust its height based on its contentAutomatically ...
I'm building an iOS Widget (WidgetKit) with a 2×2 button grid using GeometryReader to calculate row heights. The buttons should fill theircontainers completely and have equal heights, like Apple's ...
I'm newish to SwiftUI and trying to understand how I can keep one view horizontally centered on the device screen, while anchoring an additional view to its trailing edge (without uncentering the ...
I have the following example view with no zIndex modifications. Currently, when selecting a grid item, it will animate to the center of the screen. However, this does not change zIndex and items will ...
I'm working with SwiftUI and I have a rectangle inside a ZStack that I want to rotate. However, the rotation is happening around the center of the entire ZStack, not the center of the rectangle itself....
Simplest Way to Set Specific Width Ratios for Child Elements in an HStack in SwiftUIHello,I am working with SwiftUI and wondering if there's a straightforward method to set the widths of child ...
I'm curious, has anyone run into this before? I have a situation where long Text that is inside a width-limited view is being unnecessarily truncated so that it fits vertically within the parent. Is ...
I have a UIView wrapped around a SwiftUI View. I later change the UIView size but somehow it always get back to the original size.I have SwiftUI View wrapping around an UIView like this. This is one ...
I am trying to recreate Whatsapp's message reply functionality in SwiftUI.Basically I have a view that represents a message and the max width of the message is 300. So when a message has an older ...
I've defined a custom layout container by having a struct conform to Layout and implementing the appropriate methods, and it works as expected.The problem comes when trying to display Image, as they ...
This is a bug I have been trying to identify and fix for more than 3 weeks.This bug mostly happens in production.The stack trace doesn't help that much, because it looks like the app is crashing due ...
I'm writing custom SwiftUI layout and calculate container height based on child sizes. To get height of a subview I use .sizeThatFits(.unspecified) in next method:public func sizeThatFits( ...
I am using SwiftUI Charts framework at this moment to display the last 30 days of data. As you see in code, the x axis each line is new day. The chart and animation is working fine. But the ...
I would like to add vertical scrolling to my custom layout. I don't know how to do it.I have added my code below for reference. Thanks in Advance.struct TokenData { let email: String}let ...
I have been brainstorming ideas for implementing a button dropdown view similar to what you see in a default Picker. I have been experimenting with this in general to find a way to overlay a view on ...