All Questions
Tagged with swift user-interface
793
questions
0
votes
1
answer
29
views
Button only working around the button and not on the actual button
My Add assignment button only works when I click the red around and not the button that I created.
I'm new and was wondering how to fix this.Photo of issue
ZStack {
Spacer()
Button(action: {
...
0
votes
1
answer
68
views
why my SwiftData Query freeze the ui , how to solve?
I wrote a simple Home view that uses a LazyVGrid to display all my playlists. The playlists are queried using SwiftData‘s @Query, but I have no idea why the UI freezes. There is only one playlist in ...
0
votes
1
answer
39
views
UI freeze when I press on the toolbar button
why in my home view the UI freeze after I press few times on one of the menu buttons.
nothing special on my home, is quite simple, can't find what is wrong.
Sometime after one press sometime after few ...
0
votes
1
answer
27
views
Keyboard is getting dismissed after typing one character in the search bar
First I enter some text in the search bar controller, it works fine. Next I delete the text and retype the same text or different text. In this case the keyboard is getting dismissed immediately after ...
-1
votes
1
answer
115
views
How to create a dynamic grid that changes column size when a subview's width changes in SwiftUI?
Let's say I have a grid with an image and text below it. There are 3 columns and 5 rows.
I want to refactor this to SwiftUI, and also add support for dynamic text sizing for accessibility.
The grid ...
0
votes
1
answer
57
views
multiple .sheet() presentation : Integration on fast dismiss/present
I'm trying to build a view similar to what we see in the home screen of the Netflix iOS app, with multiple rows of cells.
Here's the structure of my views:
CollectionView(): Displays individual items ...
1
vote
0
answers
80
views
SwiftUI Native translucent background
I want a VStack to have a translucent background and other apps or wallpaper to appear behind it, like the sidebars of Apple apps, like the Safari tab area and the Xcode files area.
Instead of Color....
1
vote
2
answers
104
views
SwiftUI different maxWidth between elements in a Stack
I want to have a view that shows two elements created with a customShape (it is basically the same Shape as RoundedRectangle(cornerRadius:25.0) but combined with a normal rectangle to make 2 corners ...
1
vote
0
answers
56
views
How do i change the look of a tabitem? Literally Nothing happens no matter what i add to it
So i Have this NavBar with five items. The middle one is suppose to be a little bit bigger, have a orange background and have the logo of openai (its a school project). But no matter what i add to the ...
0
votes
2
answers
238
views
SwiftUI: Background not bound by frame?
This is a conceptual question to better understand the workings of SwiftUI modifiers.
Suppose we have a VStack with a Rectangle in it like so:
VStack {
Rectangle()
.fill(.blue)
....
0
votes
1
answer
175
views
Overlay Circle Markers on SwiftUI Slider
I'm working on a SwiftUI project where I'm trying to overlay circle markers on a Slider to represent annotations on a video timeline. However, I'm facing an issue where the circle markers are not ...
0
votes
0
answers
30
views
Google Places API SWIFT UI how can i get 60 results at the same call
I'm working with the Google Places API and aiming to obtain 60 results in one go. Wondering if it's feasible to utilize the nextpagetoken during the initial request to efficiently retrieve the data. ...
0
votes
1
answer
53
views
Geometry View Embeded inside NavigationView
I have been designing this view according to this YouTube video https://youtu.be/ytRim2TSdyY?list=PLyJ4OqMEvBQwxJGWIdV6y0VbeKVGkDbCT, with some little difference :
This view comes under the ...
0
votes
2
answers
199
views
Is there any alternative method to dequeueReusableCell in SwiftUI, similar to UIKit?
I'm currently working on a SwiftUI project and encountered a scenario where I need to achieve something similar to the dequeueReusableCell method in UIKit. In UIKit, I would typically reuse cells to ...
0
votes
0
answers
215
views
SwiftUI - Reusable Guided Tour & Spotlight effect View / Component
So basically I need to create a view that represents a Guided Tour of my app so users are familiar with the features and elements my app offers. This consists of lowering the opacity of the entire ...