/uikit-specialist:uikit-listfrom uikit-specialist
Builds or fixes long, fast-scrolling list screens in UIKit (iOS 18+) using UICollectionView with a custom layout. Handles feeds, inboxes, catalogs, logs, timelines, chats, and any list that grows at one or both ends without jumping or losing position.
Ships in uikit-specialist. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A list that grows at its ends and never moves under the reader's eye.
These rules say how to build it; they are not a list to test. Draw icons with system symbols; don't download or import image assets or an app icon.
UIMenu(children: [custom] + suggestedActions) from textView(_:editMenuForTextIn:suggestedActions:). Appended items land on the second page on iPhone; a menu without suggestedActions loses Copy. No long-press recognizer over the text; the row's context menu returns nil over the text. Copy is the system's item: if the menu lists it, it works; never read UIPasteboard from a UI test, it waits on the paste prompt.UITextView(usingTextLayoutManager: false); a default TextKit 2 view redoes viewport layout and selection rects on every cell setup.UICollectionView with your own UICollectionViewLayout, one section, rows keyed by the item's stable id, selfSizingInvalidation = .disabled, isPrefetchingEnabled = false. The layout keeps row tops from saved heights, snapped to the pixel grid by rounding the running position with traitCollection.displayScale. An append adds frames; a changed height shifts the tops below it; never recompute every top or empty the attribute cache for one change.NSLayoutManager the exact attributed string the cell shows, at the content's inner width, rounded up to the pixel; a row without text measures its fixed parts the same way. When a page arrives next to existing rows, drop the neighbouring row's height too (it gains a neighbour).adjustsFontSizeToFitWidth on a label updated often; no draw(_:) in cells (a drawn view keeps a bitmap its size).performBatchUpdates inside UIView.performWithoutAnimation, data changed in the same closure: insertItems for new ids, reconfigureItems for changed ones, never reloadData or a new snapshot per item. If the list is anchored to an end (the bottom of a chat or log, the top of a feed), keep "pinned" as state: set it when the reader reaches that end, clear it only when the reader drags away, and never work it out again from the offset after a batch. While pinned, the layout's target offset is that end, so a flush that also trims stays there without a second offset fix.oldCount - k. reconfigureItems asks for the cell at once, at the position given: reconfigure in a batch of its own before one that trims.performBatchUpdates, measuring only the new page; the layout's targetContentOffset(forProposedContentOffset:) returns the pinned end while pinned and otherwise keeps the first visible row where it was, and runs only inside batch updates, never after reloadData or a plain invalidation. Never add the inserted heights to the offset. The top row counts only once its visible content is below the top edge: ignore transparent margin and sub-point rounding remainders (small tolerance). Use it to capture the anchor and read the top row after restoring, so a re-layout never names the row above.reloadData, set the offset from the target's saved top rounded to the pixel at once, then one layoutIfNeeded. No animation.UIApplicationMain, and build the screen while it runs (no placeholder controller swapped in later); check a guessed width against the real one.DEPLOYMENT_POSTPROCESSING, STRIP_INSTALLED_PRODUCT, STRIP_STYLE = all, DEAD_CODE_STRIPPING.Check each behaviour once the screen works, then rerun only the failed tests by name (-only-testing:), not the whole test target. Pass -test-timeouts-enabled YES -default-test-execution-time-allowance 60 to xcodebuild test. Close any simulator you started.
What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/uikit-chat-listBuild or fix a long chat or feed list in a UIKit app (iOS 18 and later, Swift or Objective-C) - live messages pinned to the bottom, older messages loading above without the view moving, jumping to a message, Dynamic Type and rotation without losing the reader's place, selectable text with your own edit menu actions. Use for UICollectionView or UITableView screens that grow at both ends (chat rooms, comment threads, logs, timelines) and when such a list stutters, jumps, drifts or loses its pin./uikit-specialistBest practices and performance for UIKit apps on iOS 18 and later. Use whenever writing, reviewing, refactoring or debugging UIKit code - UIViewController, UIView, UICollectionView, UITableView, compositional layout, diffable data sources, cell registrations, content and background configurations, self-sizing cells, scroll position and prepending, image loading and prefetching, Auto Layout, safe area, keyboardLayoutGuide, size classes and resizable windows, UINavigationController, UITabBarController and UITab, UISplitViewController, sheets, zoom transitions, scenes and windows, traits and custom traits, Observation and updateProperties, Dynamic Type, UITextView and TextKit 2, edit menus, context menus, swipe actions, drag and drop, keyboard shortcuts, animations and springs, Liquid Glass, accessibility, localization, Swift concurrency in UIKit, hitches and Instruments, and replacing deprecated UIKit APIs./uikit-specialist-objcBest practices and performance for Objective-C UIKit apps on iOS 18 and later. Use whenever writing, reviewing, refactoring or debugging Objective-C UIKit code in .m and .h files - UIViewController, UIView, UICollectionView, UITableView, compositional layout, NSDiffableDataSourceSnapshot and diffable data sources, UICollectionViewCellRegistration, content and background configurations, self-sizing cells, scroll position and prepending, image loading and prefetching, Auto Layout, safe area, keyboardLayoutGuide, size classes and resizable windows, UINavigationController, UITabBarController and UITab, UISplitViewController, sheets, zoom transitions, scenes and windows, traits and custom traits, updateProperties, Dynamic Type, UITextView and TextKit 2, edit menus, context menus, swipe actions, drag and drop, keyboard shortcuts, animations and springs, Liquid Glass, accessibility, localization, blocks and retain cycles with weak and strong self, GCD and main-thread rules, nullability and lightweight generics, hitches and Instruments, and replacing deprecated UIKit APIs./uikit-specialist-slimShort list of what agents get wrong or forget when writing UIKit for iOS 18 and later. Use when building or changing UIKit screens, especially chat or feed lists (UICollectionView with diffable data sources), scroll position, self-sizing cells, selectable text, trait changes, edit menus, and main-actor rules./uikit-whats-new-27What is new, changed or deprecated in UIKit in the iOS 27 SDK (iOS 27.0 and 27.1). Use when building with Xcode 27 or the iOS 27 SDK, raising a deployment target to iOS 27, fixing new warnings or launch failures after an SDK update, or asked about iOS 27 UIKit - the required scene life cycle, the required launch screen, state restoration on foreground, resizable iPhone apps in iPhone Mirroring and on iPad, UIScreen.main and displayScale, effectiveGeometry, user interface idiom and orientation checks, UIRequiresFullScreen discrete resizing, presented view controller traits, tab bar prominentTabIdentifier, iPhone sidebars with sidebar.preferredPlacement and isAvailable, navigationBarMinimization, scroll edge effect changes, centered search scope bars, menu image visibility with preferredImageVisibility, Ask Siri and drag sessions without a gesture, allowsPointerDragBeforeLiftDelay, scene accessories with registerSceneAccessory, external display content, TextKit viewport rendering surfaces, text tables, attachment view reuse, observation in section providers, the UIView motion and heading body, Mac Catalyst refresh controls and steppers, canOpenURL deprecation, and the iOS 27.1 foldable APIs - UIArrangementViewController, split and overlay arrangements, UIHingeInteraction, reserved regions and vertical bars./uikit-whats-new-27-objcWhat is new, changed or deprecated in UIKit in the iOS 27 SDK (iOS 27.0 and 27.1), from Objective-C. Use when building Objective-C (.m and .h) code with Xcode 27 or the iOS 27 SDK, raising a deployment target to iOS 27, fixing new warnings or launch failures after an SDK update, or asked about iOS 27 UIKit in Objective-C - the required scene life cycle, the required launch screen, state restoration on foreground, resizable iPhone apps in iPhone Mirroring and on iPad, +[UIScreen mainScreen] and displayScale, effectiveGeometry, user interface idiom and orientation checks, UIRequiresFullScreen discrete resizing, presented view controller traits, tab bar prominentTabIdentifier, iPhone sidebars with sidebar.preferredPlacement and isAvailable, navigationBarMinimization (Swift only), scroll edge effect changes, centered search scope bars, menu image visibility with preferredImageVisibility, Ask Siri and drag sessions without a gesture, allowsPointerDragBeforeLiftDelay, scene accessories with registerSceneAccessory:, external display content, TextKit viewport rendering surfaces, text tables, attachment view reuse, observation in section providers (Swift only), the UIView motion and heading body, Mac Catalyst refresh controls and steppers, canOpenURL: deprecation, and the iOS 27.1 foldable APIs - UIArrangementViewController (mostly Swift only), UIHingeInteraction, reserved regions (Swift only) and vertical bars.npx claudepluginhub notolivaresf/uikit-skill --plugin uikit-specialistOther plugins' skills for the same job