Results for swiftui
I am attempting to decode JSON data in SwiftUI however have run into an issue I can't seem to solve. I am able to extract the data for one ticker symb...
I am developing a SwiftUI-based registration flow in my app, where a user progresses through several steps to complete their registration. The issue I...
My app requires to render a field strength in a SwiftUI View, i.e. to assign a color with a coordinate dependent opacity to each point of the View. Th...
There is an awkward gap on the trailing end of the chart. I want the bar to fill up the entire width so that there are no empty spaces. I tried playin...
SwiftUI Divider behaves as if it has frame(maxWidth: .infinity). So it widens its parent view. How can I prevent Divider from widening its parent view...
When my loading indicator placeholder LoadingPlaceholderView comes to view, it hides the whole list until it disappears. I want the list to be always ...
struct Toolbar: View { let closeThisView: () -> Void? var toolbarTitle: String var body: some View { Text("bla"...
I am looking for a way to disable .ignoresSafeArea on command in SwiftUI. I cannot seem to find anyway of doing this currently. Is it possible? Here i...
Ok, I couldn't find this exact problem in searching, so forgive me if I overlooked something deep in the bowels of searches. Premise: Existing system....
I tried creating a NavigationLink button using Rectangle(), like this: NavigationView (content:{ ZStack{ NavigationLink(destination: Con...
I am looking for a pure SwiftUI based solution to determine whether the iOS device has top notch based on the safe area insets of the root view. While...
I figured out how to make a text view's contents scroll by enclosing it in a ScrollView. However, when there is not enough content to fill a line, it ...
I've configured background task in plist.info with an identifier updateCountry and Background Modes fetch and processing as capability. I have locatio...
Is there a way to add an inset on the trailing side of DisclosureGroup's label, i.e., on the chevron side? When I add padding() to DisclosureGroup, bo...
I have a toggle which should trigger an animation of a view appearing. This works as expected when using plain @State within the view ("Is On" text ap...
My app requires to render a field strength, i.e. the value of a function f(x,y) in a rectangle view. I know that I can render linear or radial gradien...
I'm calling populateArray() on task. The problem is that the for loop on populateArray() continues after I navigate out of the View. How can I stop th...
I want text field bottom border as the below design My Code ZStack { RoundedRectangle(cornerRadius: 6) .fill(LinearGradient(colors: [Color("#...
SwiftUI ScrollView can't scroll all down to all the content of the included ZStack. struct TestView: View { var colors: [Color] = [.red, .orange, ...
After loading and trying simple examples of programmatic tab selection (which worked), I was mystified why it was not working in my code. So I simplif...
I'm trying to create a picker view in a SwiftUI view using @Query as the data source. Not sure what I am missing? Do I need to have an id in my model?...
I have the following code: protocol ItemViewable { var name:String { get set } } @Observable class Car:ItemViewable, Hashable, Equatable { st...
I'm having the hardest time figuring out NavigationStacks in SwiftUI. I have a MVP example below from Apple's documentation on NavigationStack. What I...
I’m trying to show a list of pictures in my app using ScrollView and .scrollTargetBehavior(.paging) modifier. But when swipe to next page, the view do...
I have a simple List with a row with a background image and a text. List { Section { NavigationLink { Color.red ...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?