iOS SDK: UIAppearance rules slow down every screen in the app | Community
Skip to main content
Question

iOS SDK: UIAppearance rules slow down every screen in the app

  • Dec 4, 2026 8:49 AM UTC
  • 2 replies
  • 7 views

Intercom iOS SDK registers 7 UIAppearance rules from a +load method, before main(), even if the Messenger is never opened:

- UIActivityIndicatorView in ICMWindow: setColor:
- UIButton in ICMWindow: setTitleColor:forState:, setTitleShadowColor:forState:, setBackgroundImage:forState:
- UITableView in ICMWindow: separator and section index setters
- UITableViewCell in ICMWindow: setSeparatorInset:, setFocusStyle:
- UIScrollView in ICMWindow: setContentInsetAdjustmentBehavior:
- UIView in ICMWindow: setBackgroundColor:, setSemanticContentAttribute:
- UIView in UIAlertController in ICMWindow: setTintColor:

They're scoped to ICMWindow, but once any rule exists for UIView, UIKit runs its slow appearance path for every view that enters a window anywhere in the app (+[_UIAppearance _applyInvocationsTo:window:…]). In our app that costs about 25–30 ms of main-thread time per screen push.

Request: don't create ICMPresentationManager in +load just to observe scene foregrounding (a lightweight observer would do), or call resetAppearanceWithin: lazily when ICMWindow or the first Intercom view controller is created.

2 replies

Forum|alt.badge.img+2
  • Intercom Team
  • Dec 4, 2026 8:50 AM UTC

Our iOS SDK docs do not describe a way to disable or defer the UIAppearance rules you’re seeing, or to avoid creating ICMPresentationManager in +load.⁠ The only SDK-side “opt out” we document is disabling swizzling via Info.plist, and that is only recommended if you are hitting a specific swizzling-related crash.⁠

Could you share the exact SDK version you’re using and whether the slowdown happens only when the Messenger is opened, or even when it is never opened?⁠


Sources:
About the SDK | Intercom and Fin Developer Platform
Using Intercom | Intercom and Fin Developer Platform


  • Author
  • New Participant
  • Dec 4, 2026 9:01 AM UTC

Thanks. To answer both questions:

- Version: reproduced on Intercom iOS SDK 19.9.2 (via @intercom/intercom-react-native 10.8.1). The dSYMs you publish for 19.13.0 show the same code path.
- When: it happens even if the Messenger is never opened. The rules register from +load, before main(), so every screen push pays the cost from launch.

Disabling swizzling in Info.plist doesn't avoid it. +[ICMBridge load] checks swizzlingDisabled only before swizzleReceiveRemoteNotifications. It then always calls +[ICMPresentationManager observeSceneWillEnterForeground], which, in any app with a UIScene manifest, creates ICMPresentationManager and runs +[ICMAppearanceReset resetAppearanceWithin:].

Could this be routed to the iOS SDK engineers? The fix on your side is small: observe scene foregrounding without creating ICMPresentationManager in +load, or apply resetAppearanceWithin: when ICMWindow is first created.