Skip to main content
2 votes
0 answers
48 views

UIScrollView zoomed UIImageView doesn’t bounce on vertical edges during pan

The Issue I've created a zoomable image component for SwiftUI by wrapping UIScrollView and UIImageView using UIViewRepresentable. The core functionality, like pinch-to-zoom, double-tap-to-zoom, and ...
Silenter's user avatar
-5 votes
1 answer
70 views

Layout not called when constraints have been applied, particularly to labels, under a view? (Could be a bug / simulator problem.)

I had a custom UIView V which adds a stack view S with three labels L. It draws some CAShapeLayer lines. class CustomView: UIView { ///Consumers supply some texts and other info var input: [ ...
Fattie's user avatar
  • 9,718
-1 votes
1 answer
68 views

Why is the bottom of the iOS safe area layout not aligned with the rounded corners in portrait mode?

Why is the bottom of the iOS safe area layout not aligned with the rounded corners in portrait mode, leaving a small clipped edge, while in landscape mode, it is fully aligned? Due to this clipped ...
amliangsir's user avatar
1 vote
1 answer
98 views

iOS Autolayout - unable to have height be lessThanOrEqualTo

I am using SnapKit for auto layout in my iOS app. I need to show an image view at the very top of the screen. It will have an image of dynamic height and width. I need its top edge to be aligned with ...
sudoExclamationExclamation's user avatar
0 votes
0 answers
27 views

How to force left landscape a screen in a framework?

I am working on a Swift framework that requires specific screens to be displayed in a landscape-left orientation, while the rest of the application remains in its default portrait orientation. I tried ...
Ömer faruk Bozbulut's user avatar
0 votes
0 answers
60 views

How to setup Auto Layout constraints (or SwiftUI hack) that mimic iMessage's scroll-to-dismiss of input bar

Let's say I'm trying to mimic iMessage's message view. Currently, I have a UICollectionView and a text input view that are subviews of a UIViewController's view. The constraints are laid out to place ...
Hunter E.'s user avatar
  • 108
0 votes
2 answers
75 views

Dynamic Height Cell with XIB: Including UILabel and UIImageView

I’m trying to design a UITableViewCell with XIB that has the following layout and behavior: A UIView on the left with a fixed size of 44x44. A UILabel next to it, which expands dynamically based on ...
Hakan Or's user avatar
0 votes
2 answers
46 views

How to Create a Dynamic Height Table Header with Title and Description in UITableView?

I have a UITableView and I want to display a dynamic header at the top of the table. I am trying to do this using tableHeaderView. The header contains a titleLabel and a descriptionLabel arranged ...
Hakan Or's user avatar
0 votes
1 answer
47 views

UITableViewCell 's content height constraint can not refresh in reloadData?

I have a simple demo AutoSizing UITableView project like this : when you tap the tableview cells will make cell's red subview ‘s height constraint to bigger value(from original 60 to 100) and calling ...
ximmyxiao's user avatar
  • 2,903
0 votes
0 answers
73 views

UITextView in UIViewRepresentable: setting isScrollEnabled to false breaks the layout

I have a UITextView, within a UIViewRepresentable, so I can use it in a SwiftUI ScrollView. Im using intrinsic content sizing to set the frame of the content. This works great, until I set ....
Luke Smith's user avatar
  • 1,320
1 vote
1 answer
514 views

SwiftUI's layout engine does not respect content size of UIViewRepresentable and expands size to whole screen

I'm trying to incorporate a UIViewRepresentable into my SwiftUI app. My goal is that the view is displayed with the dimensions (especially height) it needs to fit the content. However, SwiftUI somehow ...
vaely's user avatar
  • 41
1 vote
1 answer
222 views

Problem with height calculation automatically to UICollectionView inside a UITableViewCell

Good? I have a problem with the implementation of a UICollectionview intro a UITableViewCell, because the height calculation of this component does not work properly, even though using ...
ramonfsk's user avatar
0 votes
4 answers
100 views

How to keep UIView height consistent when UILabel text varies between 1 and 3 lines?

I have a view structure implemented in Swift using UIKit where a UIView contains a UILabel. The UILabel can have text with 1 line at minimum and up to 3 lines at maximum. I want to ensure that the ...
Yuuu's user avatar
  • 889
0 votes
1 answer
60 views

ScrollView start under the StatusBar

At the top of scrollView, I have an imageView and i want it to be at the top of the screen but no matter what i tried i could not find a way to put it on the top of the screen. It starts under the ...
traglen's user avatar
  • 39
0 votes
1 answer
86 views

Prevent text in UITextView from bleeding outside of textView

I have a UItextView within a UIViewController created in storyboard. The UITextView has an outlet property myTextView and constraints that keep it at a fixed size. One wrinkle: The vertical ...
user6631314's user avatar
  • 2,040

15 30 50 per page
1
2 3 4 5
807