All Questions
193,631
questions
0
votes
0
answers
5
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 ...
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 ...
0
votes
0
answers
28
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 ...
-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 ...
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 ...
-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 ...
-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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
-1
votes
0
answers
35
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 ...
-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 ...
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 ...