Add Chromecast support to event detail screen for iOS#2
Conversation
…actual CastButton Co-authored-by: biafra23 <246473+biafra23@users.noreply.github.com>
|
@copilot Please fix the following build error:
|
Co-authored-by: biafra23 <246473+biafra23@users.noreply.github.com>
Fixed in 78c149f. Added |
|
@copilot The weir looking button (certainly not a Chromecast icon) does nothing when tapped. |
Co-authored-by: biafra23 <246473+biafra23@users.noreply.github.com>
Fixed in d7fa90b. Replaced the non-functional |
|
@copilot It looks like this now and still nothing happens when the button is pressed. |
…rigger Co-authored-by: biafra23 <246473+biafra23@users.noreply.github.com>
Fixed in 60ccfbb. The root cause was that The fix replaces the
The |

CastManagerinterface inshared/commonMainexpect CastButtoncomposable inshared/commonMainactual CastButtonfor Android inshared/androidMainAndroidCastManagerinshared/androidMainactual CastButtonfor iOS inshared/iosMainIOSCastManagerstub inshared/iosMainplay-services-cast-frameworktoshared/build.gradle.ktsandroidMainMainViewController.ktto passCastButtonaseventDetailExtraActionsmobileApp/MainActivity.ktimportmobileApp/cast/CastButton.ktiosApp/Podfile@OptIn(ExperimentalForeignApi::class)toCastButton.ios.ktUIButtonwithAVRoutePickerViewso the iOS button shows the correct AirPlay iconUIKitView(AVRoutePickerView)(which didn't respond to taps) with a ComposeIconButtonusingIcons.Filled.Cast+ programmatic route picker trigger viaAVRoutePickerViewadded to key windowcast_buttonstring resource (EN/DE/ES) forIconButtonaccessibility label✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.