UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Edit Projects View in Portfolio App Weird Behaviour

Forums > SwiftUI

I seem to have a strange bug when it comes to my EditProjectsView. Every time I try to edit the color or change the title or enter some text in the description, the view immediately dismisses as if I clicked the back button. I discovered this after I added the accessibilty modifiers. In looking at the EditItemsView, there is on the update() item.projects?.objectWillChange.save(). Is there something similar I could add to EditProjectsView update method to maybe not dismiss the page whenever I attempt to edit the view? I am getting ready to re do the project from the begining, but would like to know if there might be a simple fix.

Thanks,

3      

Allready be asked. Here and here.

No reasonable solution found so far.

3      

Thanks, I was using an earlier version of xcode 12 back in October and November in which it was working. I upgraded to another beta. version and now I'm seeing the bug. Probably that same bug that caused the dreaded "yellow screen". Anyway, thanks for the reply, I can rest now until I change with another xcode version.

3      

Hacking with Swift is sponsored by RevenueCat.

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Click to save your free spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.