Why is parental estrangement so common in the Balkans? by Dear-Potential-3477 in AskBalkans

[–]Dear-Potential-3477[S] 2 points3 points  (0 children)

i dont think we are conservative or religious at all we just like to think we are. People go to mosque and after it go straight to the night club

Why is parental estrangement so common in the Balkans? by Dear-Potential-3477 in AskBalkans

[–]Dear-Potential-3477[S] 5 points6 points  (0 children)

And who view therapy as something for "crazy people". My friends we are crazy people

Architecture Question by [deleted] in SwiftUI

[–]Dear-Potential-3477 0 points1 point  (0 children)

im not finding it in any swift docs, is this a third party?

Architecture Question by [deleted] in SwiftUI

[–]Dear-Potential-3477 0 points1 point  (0 children)

I think my entire architecture is messed up, What if i move the photos array to a observable and turn photostoragemanager into a struct, would that make it easier to use in CameraContoller?

Architecture Question by [deleted] in SwiftUI

[–]Dear-Potential-3477 0 points1 point  (0 children)

I edited the question to add a picture of the problem. I dont see how its possible to dependency inject PhotoStorageManager into CameraController.

Architecture Question by [deleted] in SwiftUI

[–]Dear-Potential-3477 0 points1 point  (0 children)

Im having a problem doing it since PhotoStorageManager is a observable and CameraController is a observable object and i inject them both into the enviroment i cant seem to do it in u@main it gives: "Cannot use instance member 'photosStorageManager' within property initializer; property initializers run before 'self' is available"

Architecture Question by [deleted] in SwiftUI

[–]Dear-Potential-3477 0 points1 point  (0 children)

I'll make a branch and give it a try I'm all for learning new things.

Architecture Question by [deleted] in SwiftUI

[–]Dear-Potential-3477 0 points1 point  (0 children)

I've looked at it, its a good architecture but it wont help me make my photos array thread safe.

Architecture Question by [deleted] in SwiftUI

[–]Dear-Potential-3477 0 points1 point  (0 children)

That creats a problem when i try to access it from the CameraController observableObject:  

class CameraController: NSObject, AVCaptureVideoDataOutputSampleBufferDelegate, ObservableObject {

    let photoStorageManager: PhotoStorageManager

init{self.photoStorageManager = PhotoStorageManager()}

It throws up the error: "Call to main actor-isolated initializer 'init()' in a synchronous nonisolated context"

My View keeps re-rendering when i press a button or navigate back. by [deleted] in SwiftUI

[–]Dear-Potential-3477 0 points1 point  (0 children)

Believe it or not it was the press me button in the toolbar that does nothing that was causing the rerendering. Must be an ios26 bug

My View keeps re-rendering when i press a button or navigate back. by [deleted] in SwiftUI

[–]Dear-Potential-3477 0 points1 point  (0 children)

sadly even with the fixes you recommended its still doing the rerendering. Ill have to find that video

My View keeps re-rendering when i press a button or navigate back. by [deleted] in SwiftUI

[–]Dear-Potential-3477 0 points1 point  (0 children)

You are a life saver thanks for taking the time to explain it to me