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

All Questions

Tagged with
0 votes
0 answers
8 views

StoreKit 2 Xcode Manage Transactions - subscription purchased but "unfinished"?

I am using SubscriptionStoreView in conjunction with the modifiers .onInAppPurchaseCompletion, .subscriptionStatusTask, and .manageSubscriptionSheet to allow my users to choose from either a monthly ...
KatM's user avatar
  • 95
0 votes
0 answers
9 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
30 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
16 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
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
-1 votes
1 answer
28 views

Gradient layer on UiView

I am trying to provide gradient layer to the View on created XIB. I have to give gradient colors with combination of 5 colors. But unfortunately gradient is not working. These are colors array:- let ...
Akash Singh's user avatar
-2 votes
0 answers
24 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
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
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
0 votes
1 answer
24 views

Easing functions for using CADisplayLink

I need to manually animate something frame by frame in SwiftUI using CADisplayLink, which provides me frame to frame updates. For animating a value from a to b in a linear fashion, the implementation ...
bli00's user avatar
  • 2,541
0 votes
1 answer
20 views

How can I make my app appear higher than all other apps in Spotlight search results?

I’m working on an iOS application and would like to improve its visibility in Spotlight search results. Specifically, I want my app’s content to appear higher in the search results compared to other ...
Hakan Or's user avatar
-1 votes
0 answers
36 views

How to move between view controllers with using custom navigation controller? [closed]

I have a custom navigation controller. I want to go to next controller. And show custom back button. I use this code to do it: func collectionView(_ collectionView: UICollectionView, didSelectItemAt ...
user's user avatar
  • 27
-1 votes
1 answer
58 views

How to use a function outside of the class?

I want to use this code: var buttonNumber = 0 func settings() { CNavigationViewController().contextMenu() } class CNavigationViewController: UINavigationController { ... @objc func ...
user's user avatar
  • 27
0 votes
1 answer
59 views

Managing ViewModels

This is more of an architectural question. I am working on a personal project using the Rick and Morty API, following this design, building with Swift and SwiftUI using the MVVM pattern. I have ...
Saladel's user avatar
  • 53

15 30 50 per page
1
2 3 4 5
12912