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
0answers
15 views

How to fetch JSON data in background Swiftui

I have a JSON API I want my app to download in background. My Quotes app send out notifications with timeintervals and I want the quotes to be in the notification. struct Quotetype: Codable { let ...
0
votes
0answers
7 views

How to show a subview when clicking on a button in SwiftUI

I need to show a subview with a button at the bottom of the main view when a button pressed ( this button is in the mainView ) in SwiftUI
0
votes
0answers
5 views

How do I convert ImagePicker to store in CoreData in SwiftUI?

I came across this problem in which I try to add a new Group which has to consist of a Groupname and a Thumbnail. The thumbnail is picked with an ImagePicker. As soon as the user clicks on "Done&...
0
votes
1answer
15 views

SwiftUI - How can I filter users of a list with a datepicker

I'm creating an app with SwiftUI. I have an array of data and a list showing them. The array contains various elements which contain a username and a date for each element. Something like that: struct ...
0
votes
1answer
6 views

Apple TV Not Stopping Screen Saver

My app needs to prevent the Apple screen saver from coming on automatically. I understand that to do this means inserting the following code into the launch with options function: application....
0
votes
1answer
21 views

Instances when SwiftUIApp.init() is called?

I recently migrated from using the AppDelegate to just using the SwiftUI App lifecycle. But in some cases, when my app has been in the background for quite some time (maybe even terminated by the os ...
0
votes
2answers
18 views

How to call a function when a segment is tapped in a Segmented Picker view in SwiftUI

In the following code, I'm trying to save the color theme in UserDefaults using the SwiftUI @AppStorage wrapper. What I would like to do is be able to call a method to save the rawValue from the ...
0
votes
0answers
5 views

Get data from firestore with SwiftUI

I have a class where I get data from firebase. But I can't get it exactly as I want, for example document("abc" ) here I need to get the name "abc" from another place, different ...
-1
votes
0answers
18 views

Flow when user delete their account in-app (Sign in with Apple) [closed]

I would like to know what flow I should follow when a user, who signed up to our app using Sign in with Apple, wants to delete their account from our platform? The reason I ask is that we only receive ...
0
votes
0answers
18 views

How to assert on the text in a DatePicker which has the compact style?

I am rendering a DatePicker in my application with the compact style as follows: DatePicker("Date Selected", selection: $selectedDate, displayedComponents: [.date]) ....
0
votes
1answer
30 views

Picker Label Changing to selected value SwiftUI

I want a constant label here , but my picker label is changing upon the value I select. My Code : Picker( selection : $textBoxes[currentIndex].textFont, ...
-1
votes
0answers
38 views

Why does my SwiftUI view stutter/lags severely when using .onReceive on a slider?

Edit: Anybody to help??? This issue has been bothering me for 3 weeks now. Any help would be appreciated greatly. Im creating a simple view that mimics Apple's iOS Music App view with the Up Next Menu ...
1
vote
1answer
14 views

Multiline label for SwiftUI Picker SegmentedPickerStyle

Is there a way to create a multiline label in a SwiftUI Picker with a SegementedPickerStyle. I basically would like to create the following: But I have not found a way to create a Picker with a ...
0
votes
0answers
18 views

SwiftUI MediaPlayer Controller

I have some problems with creating some functions. I created a Music Player App in SwiftUI, using MVVM architecture. Now, I want to create a separate Controller for play, pause, shuffle etc. A friend ...
0
votes
1answer
18 views

WebView reloading when hiding under another view SwiftUI

I have a screen with a WebView (where I just display a website), and another screen that shows information (for this example is a dummy design), that comes from up to down, as a curtaing, and disposes ...

15 30 50 per page
1
2 3 4 5
1551