Post

Replies

Boosts

Views

Activity

Comment on How can I integrate my own text changes into UITextView's undo manager?
Hello! Thanks for the reply. Just using insertText doesn't quite work for me, because I need to insert attributed strings. My full use case is implementing bulleted lists without using NSTextList (because I have to support older OS versions), and selecting multiple lines and doing things like changing the indent level or removing list styling. The user taps one button and I have to add/remove/change list prefixes and change paragraph style attributes, and I want that to be undoable in one step.
Jun ’23
Comment on Navigation bar of custom-presented navigation controller moving to app title bar in Catalyst on Ventura
Setting this property prevents the contents of the navigation bar moving to the toolbar, but the toolbar still grows in height when I custom-present a view controller, and doesn't shrink back to normal height when the presented view controller disappears. The expanded toolbar covers content that I had previously pinned to the top safe area, until I recreate those safe area constraints. Is this expected, or should I file a Feedback?
Oct ’22
Comment on How do I implement drop operation in UICollectionView drag and drop with an async data source and cell registration?
Ok I set up reuse identifiers and tried a placeholder: id<UICollectionViewDropPlaceholderContext> context = [coordinator dropItem:coordinator.items.firstObject.dragItem toPlaceholder:placeholder]; And I get an exception when calling dropItem:toPlaceholder:: 'NSInternalInconsistencyException', reason: 'UICollectionView must be updated via the UICollectionViewDiffableDataSource APIs when acting as the UICollectionView's dataSource: please do not call mutation APIs directly on UICollectionView. <UICollectionView: 0x108972000; frame = (0 152.5; 375 514.5); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x281c55830>; layer = <CALayer: 0x28125c760>; contentOffset: {0, 0}; contentSize: {375, 12814}; adjustedContentInset: {0, 0, 0, 0}; layout: <UICollectionViewCompositionalLayout: 0x107d727b0>; dataSource: <__UIDiffableDataSource 0x282dea850: sectionCounts=[_UIDataSourceSnapshotter - 0x2813e2fa0:(0:215)]; sections=[0x28129d7c0]; identifiers=[0x28129d3a0]>>' So UICollectionViewPlaceholder can't be used with diffable data sources?
Nov ’21