Is nobody else experiencing this? Auto-complete in Xcode seems to be horribly broken at the moment. I'm experiencing lots of issues with struct properties not auto-completing. Here's another example, using The Composable Architecture.
If I have a simple reducer, my environment properties autocomplete:
let reducer = Reducer<State, Action, Environment> { state, action, environment in
return environment. // autocomplete here works
}
If I have a combined reducer with just a single reducer it works:
let reducer = Reducer<State, Action, Environment>.combine(
.init { state, action, environment in
return environment. // autocomplete here works
}
)
If I have some other inline above it in the combined list, it works:
let reducer = Reducer<State, Action, Environment>.combine(
.init { state, action, environment in
return environment. // autocomplete here works
},
.init { state, action, environment in
return environment. // autocomplete here works
}
)
But I have some other child reducer stored in a variable somewhere above it in the combined list, it does not work:
let reducer = Reducer<State, Action, Environment>.combine(
childReducer.pullback(...),
.init { state, action, environment in
return environment. // autocomplete here DOES NOT work
}
)