Closed lmunck closed 1 year ago
EDIT: I also get the error with TextField, so this is not related to your package. Apologies for not testing that in advance.
No worries! Probably assigning a variable to be 0
or nil
somewhere in the introspect
callback.
EDIT: I also get the error with TextField, so this is not related to your package. Apologies for not testing that in advance.
I wanted to avoid HighlightedTextEditor to collapse in a ScrollView, and therefore did the below code to make sure it has a height that SwiftUI would understand.
The view works as expected, but I get the following warning in the console:
[Unknown process name] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.
Not sure if it is a bug or not, but as this approach has worked for other UIViews without issue, I thought I'd share.