From dd1b5942c934e05d18f372b4df391abd019778ea Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Fri, 30 Oct 2026 14:15:49 -0400 Subject: [PATCH] fix(mobile): keep AirPlay button size and color consistent --- .../audio-output/ios/AudioOutputModule.swift | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/apps/mobile/modules/audio-output/ios/AudioOutputModule.swift b/apps/mobile/modules/audio-output/ios/AudioOutputModule.swift index 6fbcde6..b999d58 100644 --- a/apps/mobile/modules/audio-output/ios/AudioOutputModule.swift +++ b/apps/mobile/modules/audio-output/ios/AudioOutputModule.swift @@ -7,24 +7,37 @@ public class AudioOutputModule: Module { View(AudioOutputView.self) { Prop("tint") { (view: AudioOutputView, color: UIColor) in - view.picker.tintColor = color + view.icon.tintColor = color } } } } final class AudioOutputView: ExpoView { - let picker = AVRoutePickerView() + private let picker = AVRoutePickerView() + let icon = UIImageView( + image: UIImage( + systemName: "airplay.audio", + withConfiguration: UIImage.SymbolConfiguration(pointSize: 27, weight: .semibold) + ) + ) required init(appContext: AppContext? = nil) { super.init(appContext: appContext) picker.prioritizesVideoDevices = false picker.backgroundColor = .clear + // Keep the native picker interactive without its route-dependent icon styling. + picker.layer.opacity = 0 addSubview(picker) + icon.contentMode = .center + icon.isUserInteractionEnabled = false + icon.isAccessibilityElement = false + addSubview(icon) } override func layoutSubviews() { super.layoutSubviews() picker.frame = bounds + icon.frame = bounds } }