Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
203 views

I am new to SwiftUI development and I am meeting a strange behavior with the VStack component. I am building a GUI for a MacOS utility where I intend to present information from several components one ...
Vincent M.'s user avatar
-6 votes
1 answer
96 views

List { VStack(alignment: .leading, spacing: 8) { } .frame(maxWidth: .infinity, alignment: .leading) .padding(.vertical, 0) .listRowBackground(Color.clear) // 2. History ...
Acaibird's user avatar
0 votes
1 answer
32 views

A VStack shows chil-views created with a ForEach(viewModel.items...) loop. When the order of items changes I would like to animate the movement of items (e.g. two items switching the place). The ...
Andrei Herford's user avatar
2 votes
2 answers
71 views

I got 2+ tables and want to stack their data with filter. Each position have mark. Here PN1 and PN2. For example. Table 1 Column A Column B Column C Column D PN1 Ducts 200x200 3 PN2 Ducts 300x300 5 ...
Артур Добриян's user avatar
3 votes
2 answers
406 views

I need to extract unique values from multiple ranges (only two ranges in my example, but more will be added) and display them in a single row, sorted in ascending order, without duplicates. So far, I ...
cj69's user avatar
  • 113
0 votes
2 answers
143 views

I have HStack with two views: Image and Text. I would like to align Image top but the text center on VerticalAlignment. However, specifying alignment .center for the Text does not do the trick , it is ...
SilKirss's user avatar
2 votes
1 answer
117 views

TL;DR Which rules does VStack use to distribute available space between its subviews. especially when maxHeight: .infitiy is involved. Coming from UIKit and LayoutConstraints I still struggle to get ...
Andrei Herford's user avatar
0 votes
2 answers
305 views

I’ve got a pivot table with names in the rows and dates in the columns. I need to display actual count per name per week so the pivot table needs to look like the following. I then also need to ...
James Goodchild's user avatar
0 votes
2 answers
213 views

I am working on a NumberedList component which works like the <ol> tag in HTML. I'd like to be able provide an arbitrary number of elements, that would be automatically numbered and laid out. ...
OffTheMark's user avatar
0 votes
0 answers
164 views

INTRODUCTION / DESIRED RESULT I am trying to create a table that automatically updates and that can be filtered. In this table, I want to add a dynamically column total at the end of the 'time ...
FFF-PK's user avatar
  • 1
0 votes
1 answer
79 views

I have VStack which which has multiple views inside it and are of variable height. This VStack is placed inside the UITableView. I need to calculate the height of VStack since it resize and give ...
Neha Pant's user avatar
0 votes
1 answer
69 views

I start from an inputlist of points with X,Y locations and an input list of beginning and end points from the first list. How to get an output list with sub (inbetween) connections if a point is ...
Abe's user avatar
  • 45
1 vote
4 answers
1k views

Problem: Stacking arrays horizontally/vertically n-number of times Examples: Horizontal array {"A", "B", "C"} stacked horizontally n=3 times = {"A", "B&...
mintti's user avatar
  • 65
0 votes
1 answer
541 views

I have put in a great deal of effort to find solutions to this before asking my question here in accordance with the rules. Unfortunately, all solutions previously answered have not worked for me. My ...
KP101Coder's user avatar
2 votes
1 answer
760 views

I am setting up the frame width and wondering if it is possible to have this display as a VStack value: title instead of the default of a HStack when someone increases to a larger font size. value: ...
OEZ's user avatar
  • 91
0 votes
0 answers
41 views

import SwiftUI struct UtilitySelectionView: View { var body: some View { NavigationView { GeometryReader { geometry in ZStack { // ...
Brian Haack's user avatar
0 votes
0 answers
198 views

In my code I need "height" var to be refreshed depending of the size of the view (carousel). I thought that it could be possible by using GeometryReader, but the size is not correct :(( @...
deslarry's user avatar
2 votes
2 answers
154 views

I would like to have a VStack with a single view with fixed height on top, and the rest of the VStack taken up by a ScrollView. The code I am using right now to test this out is shown below. That ...
fishinear's user avatar
  • 6,383
1 vote
2 answers
651 views

This is probably a simple one but it is eluding me somehow. We are a security company managing access control systems in multi-unit residential buildings. I have a Google sheet that we give to our ...
Shawn's user avatar
  • 13
0 votes
1 answer
369 views

I am wanting to display three items across a screen equally. I am trying to make them all centered while having a leading alignment so when there is less than three they still maintain the same look. ...
za.ch's user avatar
  • 41
4 votes
5 answers
1k views

I have a design that I want to achieve in SwiftUI, and there are three examples shown below. It's a VStack that contains an Image, and two Text views. It should show no more than three lines of text,...
Ben Thomas's user avatar
  • 1,516
0 votes
1 answer
318 views

I have some data that will be loaded from a server and in the mean time I want to show a shimmer placeholder view. To achieve the shimmer effect, I've created the following: struct ShimmerEffectBox: ...
Shawn Frank's user avatar
  • 5,303
3 votes
3 answers
1k views

I use LazyVStack because I need to load a big list of elements, LazyVStack helps with loading fewer elements, hence the scroll bar/indicator does not know the real size of the list, causing ...
dhaval123's user avatar
0 votes
2 answers
162 views

Consider the following setup (it's not the neatest display, but it was the quickest way I could think of to replicate my problem): class IdentifiableString: Identifiable, Hashable { static func ==(...
Silver-Elder's user avatar
0 votes
0 answers
88 views

I'm doing the switch from UIKit to SwiftUI and I'm trying to achieve the following "Collection View". Assuming I have an array of pairs (i.e: [[<Image0>, <Image1>], <Image2&...
Roi Mulia's user avatar
  • 5,896
0 votes
2 answers
1k views

I have a let txt = "Hello My name is jhon cena, call me +17878 Thank you" Now requirement is to make tappable phone number & make it bold font. Here is my code which gives error Cannot ...
Amit's user avatar
  • 675
0 votes
1 answer
994 views

When I add HeadingView() in code the top left & right corner radius is not showing up I don't know what is the reason struct CustomView: View { var body: some View { VStack(...
Amit's user avatar
  • 675
1 vote
1 answer
1k views

This is my first question on here. I want padding at the edges of this View: struct Test3: View { var body: some View { VStack { ZStack { Color.blue ...
jon.marson's user avatar
2 votes
1 answer
708 views

This is how my VStack is defined here: VStack(alignment: .leading, spacing: 1) { Text("entry.titleAlert hajdfg dgfhds fghjds gfhjdsg fhjdsg2") .frame(maxWidth: .infinity) ...
Bartłomiej Semańczyk's user avatar
0 votes
2 answers
328 views

I have a pretty basic view with an HStack, that has an Image, VStack, Text, and another Image in it. What I would like for is the speedometer image, the ProgressView (which is in the VStack), the &...
travis's user avatar
  • 75
0 votes
1 answer
100 views

Main Content View: struct ContentView: View { @State var editing: Bool = false @State var inputText: String = "" @State var vOffset: CGFloat = 0 @State var hOffset: ...
Ios Dev's user avatar
0 votes
0 answers
243 views

I am trying to make the jump from Objective-C's graphical UI to coding the UI in Swift. I have a View that looks okay in portrait mode, but when the device is rotated, the title and buttons move off ...
PhillipOReilly's user avatar
1 vote
1 answer
555 views

I want to use the formula vstack on an array to combine columns from different worksheets, it works perfect on column H and beyond but on the columns that have stacked cells(D to G), I got error #...
Vaeaelen's user avatar
4 votes
0 answers
236 views

My WatchOS app show a top margin and I don't know why. I'm using a VStack inside the main view, and I expect the title should be aligned top. How can I remove the top space? The only think I found to ...
Luca's user avatar
  • 75
0 votes
1 answer
236 views

After a conversion i get an excel file with multiple sheets. i create a new sheet(1) and with vstack i stack the content from all sheets into the new sheet(1). all blank cells from the original ...
gurrilan's user avatar
0 votes
1 answer
412 views

Let's say we have the following code: struct ContentView: View { var body: some View { VStack { Color.black .frame(width: 130, height: 30) ...
Banannzza's user avatar
0 votes
1 answer
697 views

I have a List and a button in VStack. The button width needs to be the same as the ListView Width. How can I make it the same in SwiftUI? I am just a beginner in swiftUI, so I don't know any modifiers ...
Nick Patel's user avatar
0 votes
1 answer
295 views

I have view, where inside ScrollView stackView, with content what expand after tap on button, and then I should scroll this page. in the bottom I have HStack with buttons, up there "RatingViews&...
imjohnnotsina's user avatar
3 votes
2 answers
2k views

I'm experiencing this issue and not user if it's a swift ui bug or expected behaviour. Could not find something related to this online. Given this view struct ContentView: View { var body: some View ...
Daniel's user avatar
  • 1,263
3 votes
1 answer
621 views

The keyboard lifts the last view in a VStack. Adding .ignoresSafeArea(.keyboard) only to BannerAd doesn't work. (Why?) import SwiftUI import RealmSwift struct ContentView: View { @...
BPDev's user avatar
  • 927
1 vote
1 answer
628 views

I'm struggling to achieve the following custom alignment in a SwiftUI VStack: I've created a custom alignment guide to use in the Event view, as follows: extension HorizontalAlignment { struct ...
AndrewC's user avatar
  • 461
-1 votes
1 answer
214 views

I am building an app for iOS in Xcode. New with this, as you can see. I created a VStack, with 3 rectangles in it, all of them taking al the width of the screen (the app is only portrait): First one ...
Frikeando's user avatar
0 votes
1 answer
319 views

I need to make a screen in SwiftUI where the 1st and 3rd subviews of a VStack have fixed size and I want the 2nd in the middle to take the rest of the available height (This value will differ based on ...
Vipul Arvind's user avatar
0 votes
1 answer
324 views

I have a layout question for using VStack with ignoresSafeArea modifier. This is my code: struct ContentView: View { var body: some View { VStack{ Color.green ....
Rufus's user avatar
  • 689
3 votes
0 answers
244 views

I have a SwiftUI View that I am presenting in a UIViewController container. When a user creates a post I want the feed to fetch that new post from the service and insert it at the beginning of the ...
tHatpart's user avatar
  • 1,186
1 vote
1 answer
45 views

I'm trying to insert 3 rectangles inside my scrollView precisely 2 horizontally and 1 vertically. I need all three rectangles to respect the same width. Horizontally everything works fine and adapts ...
kAiN's user avatar
  • 2,823
0 votes
0 answers
167 views

I'm learning SwiftUI, and my Profile Screen requires a view similarly shown in this image: https://i.pinimg.com/originals/1c/21/96/1c2196706b947cc9e8f656da98fd2c80.jpg I have managed to set background ...
SwiftNewbie's user avatar
0 votes
1 answer
776 views

I have an empty numpy array. And I want to append arrays to it such that each appended array becomes an element. import numpy as np a = np.array([]) for i in range(3): a=np.append(a,np.array(['x'...
yashaswini srirangarajan's user avatar
-3 votes
1 answer
1k views

I am trying to create a very simple SwiftUI view where I show an image with some text right below it. However, whenever I add a custom image from Assets(system images look fine), there is a little bit ...
Cameron Henige's user avatar
0 votes
1 answer
176 views

I have simplest ever question, which I can't find an answer here. How to vstack and get sound from both videos? I use simply: ffmpeg -i e:\tt140_H.mp4 -i e:\tt140_m.mp4 -vsync 2 -filter_complex vstack ...
Peter.k's user avatar
  • 1,548

1
2 3 4 5