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

All Questions

Tagged with
0 votes
0 answers
6 views

What is the proper way to refactor a class from @ObservableObject to @Observable?

I would like to refactor the following code using @Observable instead of @ObservableObject. import Foundation import FirebaseAuth enum AuthenticationState { case unauthenticated case ...
LeEuler's user avatar
  • 41
0 votes
0 answers
8 views

Autofill suggestions not showing up for QR-based verification code

I am trying to integrate autofill for a verification code in one of my iOS projects. I have added an apple-app-site-association file to my domain. It was integrated successfully, as now the iOS ...
deaddroid's user avatar
  • 430
0 votes
0 answers
25 views

An iOS application crashed or was closed, how do know which screen was last viewed by the user?

An iOS application crashed or was closed by the user or closed because the device has no battery, how I retrieve the information for which screen was last viewed by the user? I want to save this ...
user26383060's user avatar
-1 votes
0 answers
15 views

How should SwiftUI accessibiltyActions be announced in VoiceOver?

I'm trying to add accessibilityActions to specific views in an app I'm working on for a client. I'm using the accessibilityAction(named:) viewModifier. I can't share the client code, but it's ...
Duncan C's user avatar
  • 131k
0 votes
0 answers
39 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
10 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
24 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
0 votes
0 answers
11 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
53 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
-2 votes
0 answers
23 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
21 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
24 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
18 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
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: { ...
Immanuel Vafaee's user avatar
0 votes
0 answers
18 views

iOS 17 MapKit .standard doesn't allow for a globe view when zoomed out

I'm working on setting up a very basic mapview with MapKit for my iPhone on iOS 17. I noticed that the Apple maps app doesn't have this issue but I really couldn't find much about this topic other ...
Zach042's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
1473