Skip to main content

All Questions

Tagged with
0 votes
2 answers
78 views

Why SwiftUI redraws the body of my custom View since nothing related to him changes?

Here is an example: struct DemoApp: View { @State var viewModel = DemoAppViewModel() var body: some View { VStack { DemoMonthView(date: viewModel.monthDate) ...
Bartłomiej Semańczyk's user avatar
-1 votes
0 answers
37 views

Any known issues with using negative values for padding in SwiftUI [closed]

I have a RootContainer view in my SwiftUI app that takes in content as a view builder, adds it to a ScrollView then adds padding to the content. Some views need to go edge to edge and so I was going ...
Darren Findlay's user avatar
0 votes
1 answer
35 views

iOS VoiceOver is not reading Korean when it is the primary language

One of our user is trying to use iOS's VoiceOver with our SwiftUI app and they are not able to use it properly in Korean Language Issue is VoiceOver doesn't read Korean strings if the primary ...
Abbas Dahodwala's user avatar
-1 votes
0 answers
41 views

Colors on Older Hardware Don't Appear as Expected

I have created an Indicator for a horizontal scroll view that contains SwiftUI Images. The Indicator works and does just what you would expect. However, I was very surprised to find that these colors ...
JohnSF's user avatar
  • 4,358
1 vote
2 answers
61 views

SwiftUI @ObservedObject not updating

My issue is that when I edit a template, the UI in BeginWorkoutView does not update correctly. I believe I am somehow misusing @ObservableObject/@Published/@Mainactor, but cannot for the life of me ...
whyDoICodeFrontEnd's user avatar
0 votes
0 answers
30 views

Why using AsyncImageCache the cache sometimes is not working? [closed]

This is my simple class: import CachedAsyncImage import SwiftUI struct NetworkImage: View { let url: URL? var body: some View { CachedAsyncImage(url: url) { image in image ...
Bartłomiej Semańczyk's user avatar
0 votes
0 answers
79 views

How can I show content presented inside a navigation link as FullScreen [closed]

From the Apple's example struct FullScreenCoverItemOnDismissContent: View { @State private var coverData: CoverData? var body: some View { Button("Present Full-Screen Cover With ...
AppleDeveloper's user avatar
0 votes
0 answers
82 views

How to use a Conditional inside a SwiftUI Picker

I have a picker where I want to lock any index that isnt -1 behind a paywall: let images = ["person.slash.fill", "person.fill", "person.2.fill", "person.2.fill&...
john smith's user avatar
0 votes
1 answer
50 views

How to hide background of matchedTransitionSource?

How can I hide the background of an animated NavigationLink while using the swipe-to-go-back gesture? Here's what I currently have: and what I want it to look like: similar to the iOS Photos app. I'm ...
routern's user avatar
  • 17
0 votes
0 answers
57 views

Crash on LazyVStack SwiftUI [closed]

I am trying to deploy my app onto the App Store but app review keeps rejecting my app due to a crash. I cannot reproduce it on any real device or the simulator. The crash log included from apple doesn'...
Ahmed Zaidan's user avatar
1 vote
1 answer
41 views

How to change color behind bottom sheet with SwiftUI?

My app's foreground color is this shade of blue and I need to display a bottom sheet at some point, but when the bottom sheet goes up, by default, the view behind it shrinks a little and the ...
Mauk's user avatar
  • 33
-3 votes
3 answers
133 views

Drawing multiple gradients and inner shadow in SwiftUI

How can I create the metallic rim gradient as well as inner shadow as seen in the image below? Here's my code: import SwiftUI struct GradientDishView: View { private let containerSize: CGFloat = ...
batman's user avatar
  • 2,458
0 votes
1 answer
46 views

How to Vertically Centre a view in relation to the top border

I would like to vertically centre a view in relation to the top border using SwiftUI. In UIKit this is really easy with layout anchors however I am really struggling to work out how to do this in ...
Edward's user avatar
  • 2,986
0 votes
0 answers
45 views

SwiftUI Image Sharing: Screenshot does not load on first sharing attempt, but loads afterwards

I have a simple solitaire game where I want to share a screenshot of winning hands via the share sheet. I capture the screenshot fine, but when I go to share (mainly testing via Gmail), the first time ...
Newps's user avatar
  • 11
0 votes
1 answer
74 views

Keep two view positions synchronized during animation

I have a questions about syncing view positions during an animation change. Here's the version I'm aiming for, but notice when the keyboard appears, the view height changes immediately with no ...
msadoon's user avatar
  • 145

15 30 50 per page
1
2 3 4 5
858