Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [swiftui]

SwiftUI is a way to build user interfaces across all Apple platforms. Build user interfaces for any Apple device using one set of tools and APIs. With a declarative Swift syntax that’s easy to read and natural to write, SwiftUI works seamlessly with Xcode design tools to keep your code and design perfectly in sync. Automatic support for Dynamic Type, Dark Mode, localization, and accessibility. Use this tag for questions about SwiftUI on any platform.

0 votes
0 answers
20 views

View in infinite creation loop

In my app, the navigation should be ArmyListView -> ArmyListDetailsView -> IncludedUnitScreenView My ArmyListView screen creates a NavigationStack and moving on to the ArmyListDetailsView works ...
Doug Idle's user avatar
0 votes
0 answers
8 views

Keyboard Extension Input Field Not Working

I've been working on a custom keyboard extension and encountering an issue where I can't input text into the Custom TextField. Even when the TextField is selected (indicator is on), the input still ...
Muhammad Bilal's user avatar
0 votes
1 answer
22 views

Get the bounds of overflowing objects to shrink to parent view

I'm making a representation of the unit circle and I have the point labels arranged in a circle. I know the origin of the labels are at the center, so they overflow the parent. Whats the best way to ...
Ashbury's user avatar
  • 2,335
-1 votes
0 answers
12 views

Xcode Beta strange animation / transition between my navigation

Transition gif Since I downloaded the Xcode beta version, a strange process has occurred with the views with my navigation. I couldn't find anything online about this, I've also searched for ...
Jojo Who's user avatar
0 votes
0 answers
8 views

Live Activity not workin on Simulator

Live Activity isn't working on the iOS 17.5 Simulator but works on a physical device. When I first close the app, it updates once, but then nothing updates anymore. Supports Live Activities - YES ...
Ömer faruk Bozbulut's user avatar
0 votes
2 answers
43 views

Swift not using initialiser when creating a view

I have a specific SwiftUI View that I am using to add and edit variables. When I add the variable, I call the view using this: Button(action: { showingDeviceManager.toggle() }, label: { Text(&...
Echo31416's user avatar
0 votes
0 answers
12 views

Using custom font together with dynamic type size in SwiftUI

So far I have been using the modifier .dynamicTypeSize every where to define the text size like that: Text("Hello, World") .dynamicTypeSize(.xxxLarge) Now I also want to define a custom ...
Simon W's user avatar
  • 23
0 votes
0 answers
9 views

Batch loading for Firebase in SwiftUI

Does anyone know how to fetch only like 5 posts at a time? Like when you're scrolling though the ScrollView { I want only the posts that should be seen being loaded in. I need to reduce the amount of ...
CobraCodes's user avatar
-1 votes
0 answers
20 views

How to show bottom TabView in all Screens not only on its Tabs in SwiftUI

I have created bottom tab called TabContainerViewNew which is showing perfectly on its tabs view but i want TabContainerViewNew in DashBoard and attendance views as well.. so how to show ...
Swift's user avatar
  • 1,170
-2 votes
0 answers
20 views

SwiftUI modifier and view parameter [closed]

Is they any simple way to find a current Modifiers for a view . Working on multiple framework often is not easy to remember every Modifiers for a view In flutter all view modifier will be as parameter ...
PRATHIV's user avatar
  • 458
1 vote
1 answer
18 views

SwiftUI Xcode project - Can I change the struct name in the automatically generated file whose name is the app's name?

Suppose I create a new Xcode project of SwiftUI with app name "ExampleApp", then Xcode automatically generates a file ExampleAppApp.swift that contains the following code: @main struct ...
HelloVictor2000's user avatar
0 votes
1 answer
22 views

Bug in the implementation of system, dark and light mode where system theme isn't getting applied to the sheet

I am implementing a picker view which has 3 options: system, light and dark mode. Whenever an option is selected, it gets persisted to whole app by the use of @AppStorage. Light mode and dark mode ...
Rajbeer Singh's user avatar
0 votes
0 answers
12 views

Changing the background color of .searchable search bar is not setting it to normal black color

I have a search bar set up using the .searchable modifier on a SwiftUI View, and I would like to set the background color of the bar text field to be Color.black. I've attempted to change the ...
Matias Carulli's user avatar
0 votes
1 answer
28 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: { ...
Immanuel Vafaee's user avatar
0 votes
1 answer
16 views

Issues with GeometryReader inside a scaled view

I am keeping track of the location of all rectangles in a grid of rectangles with a geometry reader to interact with them later. Now I would like to add the option to zoom in and to scroll to the grid....
Trailblazer's user avatar

15 30 50 per page
1
2 3 4 5
2647