Post

Replies

Boosts

Views

Activity

Reply to IOS 18 uses TextKit to calculate the height of attributed strings, but the calculation is inaccurate.
I'm a bit confused about the answer being marked as accepted. Does this mean there wasn't a discrepancy between iOS 18 and earlier versions? I'm asking because we're experiencing a bug where the UITextView does not always resize its height correctly when we add an attributed string. We had an old hack that involved disabling/enabling isScrollEnabled, but this stopped working with iOS 18. Might not be related at all, but this post is the closest I've come to something that could be.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jan ’25
Reply to IOS 18 uses TextKit to calculate the height of attributed strings, but the calculation is inaccurate.
I'm a bit confused about the answer being marked as accepted. Does this mean there wasn't a discrepancy between iOS 18 and earlier versions? I'm asking because we're experiencing a bug where the UITextView does not always resize its height correctly when we add an attributed string. We had an old hack that involved disabling/enabling isScrollEnabled, but this stopped working with iOS 18. Might not be related at all, but this post is the closest I've come to something that could be.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’25
Reply to SwiftUI - Placing ToolbarItem on .keyboard does not work
Experiencing the same issue. Toolbar works fine in simulator, but does not show up on physical device. However, if I open the view, move the app to the background and then move it back to the foreground again, the toolbar suddenly works as expected.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24