Post

Replies

Boosts

Views

Activity

Reply to Xcode 27 Agent is impossible to work with.
Two weeks working with agents in Xcode 27 and I want to kill myself. I have to constantly open and rearrange panels, move panels around, move tabs around, files are opened by mistake in the wrong panel, to start a new conversation I have to make sure I have the right panel selected, otherwise I have to move it from one panel to the other. This is the most annoying interface Xcode ever had. As soon as I finish the current project I'm moving back to Xcode 26. I hope that won't cause any troubles, but this is a nightmare. I filed two bugs already, but I'm sure nothing is going to change. Sad how they ruined a perfect interface.
Jul ’26
Reply to Gemini coding assistant no reply
OK. I had to edit my reply because I found an issue. After a while, the agent gives me the error that I don't have enough funds in my API key. I realized that the "Default" option in Gemini is misleading. It sets the agent to work with a paid model. So you have to set a free Flash model first. The problem is that even after that, the agent doesn't respond. I tried all the Flash options, restarting Xcode, signing out and adding the key again, and nothing works. No matter the model I choose, the agent never answers and always gives me the error "JSON 500, not enough funds".
Jun ’26
Reply to Importing Data into SwiftData in the Background Using ModelActor and @Query
SwiftData still have serious issues, specially when working with CloudKit (iOS 18 Beta). One of the issues I was able to identified is that the views do not update when relationships change. You can see all the values in an object except the values in the relationships (they are nil), but if I force an update on the view, the values show up. I hope they come up with a solution before release, otherwise SwiftData will be completely useless.
Topic: App & System Services SubTopic: iCloud Tags:
Aug ’24
Reply to @Observable crashes in Xcode, iOS Beta 7 on iPad
I checked and get the same error. The only issue I found with your code is that you declared the property with @State but you should have declared it with @Bindable. But I tried and keep getting the error. It has to be a bug. The only solution was to manage the selection from a @State property (@State private var envProfile: String?)
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’23
Reply to can't use @Environment for Binding?
The most elegant solution I've found is to extract the view and pass the model to a @Bindable property. @Observable final class View1Model { var text: String = "" } struct View1: View { @State var viewModel = View1Model() var body: some View { View2() .environment(viewModel) } } struct View2: View { @Environment(View1Model.self) var viewModel var body: some View { View3(viewModel: viewModel) } } struct View3: View { @Bindable var viewModel: ViewModel var body: some View { TextField("Text", text: $viewModel.text) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’23
Reply to Xcode 27 Agent is impossible to work with.
Two weeks working with agents in Xcode 27 and I want to kill myself. I have to constantly open and rearrange panels, move panels around, move tabs around, files are opened by mistake in the wrong panel, to start a new conversation I have to make sure I have the right panel selected, otherwise I have to move it from one panel to the other. This is the most annoying interface Xcode ever had. As soon as I finish the current project I'm moving back to Xcode 26. I hope that won't cause any troubles, but this is a nightmare. I filed two bugs already, but I'm sure nothing is going to change. Sad how they ruined a perfect interface.
Replies
Boosts
Views
Activity
Jul ’26
Reply to Gemini coding assistant no reply
OK. I had to edit my reply because I found an issue. After a while, the agent gives me the error that I don't have enough funds in my API key. I realized that the "Default" option in Gemini is misleading. It sets the agent to work with a paid model. So you have to set a free Flash model first. The problem is that even after that, the agent doesn't respond. I tried all the Flash options, restarting Xcode, signing out and adding the key again, and nothing works. No matter the model I choose, the agent never answers and always gives me the error "JSON 500, not enough funds".
Replies
Boosts
Views
Activity
Jun ’26
Reply to Importing Data into SwiftData in the Background Using ModelActor and @Query
SwiftData still have serious issues, specially when working with CloudKit (iOS 18 Beta). One of the issues I was able to identified is that the views do not update when relationships change. You can see all the values in an object except the values in the relationships (they are nil), but if I force an update on the view, the values show up. I hope they come up with a solution before release, otherwise SwiftData will be completely useless.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to @Observable crashes in Xcode, iOS Beta 7 on iPad
I checked and get the same error. The only issue I found with your code is that you declared the property with @State but you should have declared it with @Bindable. But I tried and keep getting the error. It has to be a bug. The only solution was to manage the selection from a @State property (@State private var envProfile: String?)
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to can't use @Environment for Binding?
The most elegant solution I've found is to extract the view and pass the model to a @Bindable property. @Observable final class View1Model { var text: String = "" } struct View1: View { @State var viewModel = View1Model() var body: some View { View2() .environment(viewModel) } } struct View2: View { @Environment(View1Model.self) var viewModel var body: some View { View3(viewModel: viewModel) } } struct View3: View { @Bindable var viewModel: ViewModel var body: some View { TextField("Text", text: $viewModel.text) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’23