Relative Content

Tag Archive for swiftxcodeswiftui

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 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)?