You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the initial text is set to an empty string, the cursor is smaller than after the first character is entered. If all characters are erased, the cursor size is displayed correctly.
To Reproduce
Create @State private var message = ""
Use as HighlightedTextEditor(text: $message, highlightRules: rules).frame(minHeight: 50)
Now you can see small cursor
Enter one character and you'll see normal cursor
Remove the character and you'll see normal cursos
Expected behavior
The cursor is always displayed at the same size
Screenshots
2023-08-20.02.14.21.mov
Environment
Please include:
Exact version of iOS / iPadOS / macOS where your app was running when you saw the bug
iOS 16.4, iPhone 11 Pro
Is your app using AppKit or UIKit? If your app is for iOS or Mac Catalyst, it is UIKit. If it is for macOS natively, it is using AppKit.
UIKit
Additional context
I use flutter, but all the work happens in an independent UIViewController
The text was updated successfully, but these errors were encountered:
Describe the bug
If the initial text is set to an empty string, the cursor is smaller than after the first character is entered. If all characters are erased, the cursor size is displayed correctly.
To Reproduce
@State private var message = ""
HighlightedTextEditor(text: $message, highlightRules: rules).frame(minHeight: 50)
Expected behavior
The cursor is always displayed at the same size
Screenshots
2023-08-20.02.14.21.mov
Environment
Please include:
Additional context
I use flutter, but all the work happens in an independent UIViewController
The text was updated successfully, but these errors were encountered: