Questions tagged [stackview]
214 questions
0
votes
1 answer
Self sizing table view cells based on ui stack view content
i want to create cells with stack view in it. For different cells there would be different amount of arranged subviews in stack view.
Currently i create something like this but self sizing isn't working.
Table view initialization:
let tableView:…

mmm
- 260
- 4
- 21
0
votes
1 answer
Custom Facebook button inside Stack View
I'm creating a login page where I want to have a Facebook login button. I have a stack view where it I want the button to be. How do I insert the button into the stack view and customize the button to setUpElements()? I currently have a normal…

Bri
- 25
- 6
0
votes
1 answer
stackView content (SF-Symbols) distorted
I want to replicate the Apple Map App Buttons as seen here:
This is the code so far:
class CustomView: UIImageView {
init(frame: CGRect, corners: CACornerMask, systemName: String) {
super.init(frame: frame)
self.createBorders(corners:…

user12473575
- 73
- 7
0
votes
1 answer
How can l add subviews to my stackView? I try, but l can't see them in my view
I created class :UIView, where l made a label, textField and stackView. I want to add them to my stackView, but l can't figure out where is the problem.
class View: UIView {
let stackView: UIStackView = {
let sv = UIStackView()
sv.axis =…

maytime
- 111
- 1
- 12
0
votes
1 answer
Adding UITextView and UIImageView to UIStackView
So, I added some text (UITextView) to my stackView and centered to the top. I also added a UIImageView which would sit nicely under my UITextView. Well it doesn't. For some reason the image covers the text completely. If I delete the image the text…

Jadiel Alfonso
- 39
- 6
0
votes
2 answers
iOS: How can I make all my UIImageViews the same size?
Currently, I have a Vertical StackView. Inside that StackView, there are three Horizontal StackViews. In each one of those, there are two UIView's which are loading a XIB Storyboard View that I have created. It looks like this:
In each of those XIB…

Julian
- 98
- 1
- 11
0
votes
0 answers
QML StackView showing error You cannot push/pop recursively
I have two QML files
Level1.qml and level2.qml
in main.qml,
StackView {
id: idMyStackView
focus: true
anchors.fill: parent
initialItem: Level1{
focus: true
}
}
in Level1.qml
…

Vipin
- 3
- 1
0
votes
1 answer
hard to autolayout(stackView in ImageView)
I am making a custom cell using auto layout, but the auto layout is not applied well.
I set auto layout like this
Then, in the end, this shape come out.
but this shape that The ratio is not right.
why it doesn't match..?
i set a autolayout on…

ga-yo
- 123
- 1
- 2
- 11
0
votes
0 answers
How to align buttons on row using stack views without growing label
I have 3 buttons and I want to align them to left and right. Previously I was using growing label to align them. Is there a way how to achieve this without growing label?
What distribution + hugging priorities etc. should I use to get correct…

Marek H
- 5,173
- 3
- 31
- 42
0
votes
1 answer
How can I change the height of a single UIView inside of a stackView progromatically?
I'm having trouble figuring out how to have two views have equal heights and the third view have a bigger height than the other two. Right now, whenever I try to change the height of one of the views, it does the same for all other views. Here is…
user12329049
0
votes
1 answer
Why I can't H-Centering and give fixed width to element inside StackView
My problem all the time is how to center one element inside the stack view
Please look at my screenshots below to explain:
Number 1) Is the main StackView
Number 2) Is the concerned StackView which I want to make its content ( UIView in No 3 )…

Let.Simoo
- 93
- 9
0
votes
1 answer
qml Stackview: pop a page which is in another file
My Problem, is that I cant pop() a page out of the stack.
Let me explain a little bit:
I have a page where a couple of items are displayed
Each item has a button, which open a new page on top of the stackview, where i can edit my item.
This…

djolly
- 15
- 3
0
votes
1 answer
QML StackView : Changing replaceEnter/Exit animation dynamically
Is there anyway to change the replaceEnter/Exit Transition animation dynamically depending on the next QML file to be loaded in the stack view.
Situation:
I have a Centre QML file having 4 buttons on the 4 sides of the screen. There are other 4 QML…

BikashRDas
- 149
- 1
- 10
0
votes
1 answer
update vertical stack view contents
I'am observing data in firebase, when this data changed, the collectionview reloads it's data, where I remove a label from the vertical stackview, I want to add this label again to the vertical stackview during runtime on some conditions, the…

Zeyad.Ahmed
- 61
- 4
0
votes
1 answer
Underline Single Button from Top menu bar
As seen in the image MyTopBar
I have 5 uibuttons inside a scroll view. I am using it as Navigation/Top bar
I want to achieve an underline effect only on selected button among the 5 button. imageTarget
I saw some libraries but it did not work as I…

Sameeh Ahmed
- 73
- 1
- 11