Smoother movement of: Stop the slider/indicator on target area (timing game)
Im starting out as a SwiftUI Xcode developer and I somehow can’t get this fixed and it’s so annoying. Basically the below code is a kind of timing game where you have to try to stop the slider/indicator on the green rectangle. That’s when you win. This already works, but the movement of the slider/indicator is so slow and just not smooth, and every time I change around certain numbers, the slider/indicator behaves very weirdly. I just want it to be fast enough so it’s a challenge and I also want a very smooth movement. I tried with other animation variants, but I then I cant get the exact positioning of the slider/indicator when its stopped.
Why is Xcode Preview only showing portion of View with background?
I am following the Apple tutorial to learn how to make iOS apps. This is the link: https://developer.apple.com/tutorials/develop-in-swift/design-an-interface
Why do i get an Empty View while trying to navigate to Sign in view swiftUI
In this app, when it first loads it checks first for signedUp status, if signedUp it is supposed to show contentView which has , for now mock listings, in it. Otherwise it shows the role selection view in which the user can signup or signin. there seems to be nothing wrong with the signup process but when i click on signIn i get an empty view. a few days ago it was showing right but i broke something and now i dont see the signIn view. Thank you
Core Data Export / Import
My app manages data with Core Data. I would like to add an export and import function to the app.
The export seems to work so far (at least a .sqlite file is saved). However, when I want to import the file, it is only greyed out and I cannot select it. Do I need to change anything in the code? Or set the permission for accessing files in the app settings in XCode (if so, what do I have to select in the iOS target properties? I haven’t found anything suitable while looking)?
SwiftUI @Published Property Not Updating View When Using Class vs Struct
I have a minimal reproducible example in SwiftUI that demonstrates an issue with view updates when using a class vs a struct. The view updates correctly when using a struct, but it doesn’t update when using a class. Below is the code:
Swift Error with existing codebase: Main actor-isolated context may introduce data races
OK, all of a sudden I’m getting warnings (and runtime errors) in code that hasn’t changed in quite some time. I believe this has to do with Swift concurrency.
Error with: “of main actor-isolated context may introduce data races”
OK, all of a sudden I’m getting warnings (and runtime errors) in code that hasn’t changed in quite some time. I believe this has to do with Swift concurrency.
I have a project from campus, but I tried the webkit error, how do I fix it?
I have a project from college, make a mobile app, I made it for the ios version. I tried to run it in the simulator, it shows the text. but if I try it in real it’s not a simulator. the text doesn’t work, there is an error like that on the webkit, I don’t know why. can anyone help?
Set Up for Testing Apple Books
Screenshot of what I’m seeing
SwiftUI: unexpected Row height when adding Picker in Form
Recently, When adding a Picker in Form or List in SwiftUI, I got unexpected(bigger) Row height as shown in the first image below and what I expect in the second Image: