Skip to content

Carplay - ios 14 Broken feature. CPListImageRowItem can't be used in CPListSection #9996

@ghost

Description

In the carplay framework, it's impossible to use the new CPListImageRowItem from ios 14 with the current version of xamarin-ios-14.2.0.12.

In the Apple ios api, the init function for CPListSection is (NSArray<id> *)items;
Both CPListItem and CPListImageRowItem implements CPListTemplateItem via CPSelectableListItem, but the Xamarin API doesn't allow CPListTemplateItem in the constructor.

Actual Behavior

In Xamarin, CPListSection constructor is takes a CPListItem [] items, but CPListImageRowItem doesn't inherit from this interface.
Both CPListItem and CPListImageRowItem have the CPSelectableListItem interface.
We can't create a CPListSection with CPListImageRowItem

Expected Behavior

We should be able to create CPListSection with CPListTemplateItem. The binding should probably be change to make
CPListSection constructor take an array of CPListTemplateItem instead of CPListItem

Workaround

#9996 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIf an issue is a bug or a pull request a bug fixiOSIssues affecting iOSneed-infoWaiting for more information before the bug can be investigated

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions