Hey! I experienced a similar problem too. The swift-frontend and SourceKitService processes were overloading memory incrementally. I managed to find what caused this error. But I do not understand the true reasons for this problem.
For fun, I tested build with different values.
In my case, the memory overload occurred due to the fact that after Text () there was
.padding (with value) followed by
.foregroundColor (with RGB).
For clarity, I made a screenshot from Xcode:
Take a look. Maybe someone is also getting an error because of this, and you can get through this problem.
Although for me it is a mystery why this is happening.
Post
Replies
Boosts
Views
Activity
I think too, problem somewhere around GeometryReader and .padding(). I solved this problem for my code (post on the first page). But it very strange and mistery... I hope Apple fix this in next updates.
Hi everyone! temporary workaround by Roy Rodney
add .onTapGesture modifier with count, for example
DatePicker(
"Foo",
selection: $date,
displayedComponents: .date
)
.onTapGesture(count: 99, perform: {
// overrides tap gesture to fix ios 17.1 bug
})
see link below for more detail
https://stackoverflow.com/questions/77373659/swiftui-datepicker-issue-ios-17-1