Hello,
The issue that this label text content will exceed the screen length is caused by an error in dynamically allocating the width of the control on iOS for some reason.
There is a problem in Github similar to the situation you are experiencing, please refer to the workaround from CollectionView inside RefreshView causes layout problems on iOS #11440.
In my tests, I modified your code to the following and it wrapped normally:
<RefreshView >
<ContentView>
<CollectionView x:Name="ItemsDetailListView" BackgroundColor="{StaticResource PageBckColour}"
ItemsSource="{Binding players}"
SelectionMode="Single">
<CollectionView.ItemTemplate>
<DataTemplate>
<StackLayout >
<Label Padding="8" Text="{Binding playerName}" HorizontalTextAlignment="Start" VerticalTextAlignment="Center"
LineBreakMode="WordWrap"
TextColor="Blue" FontFamily="OpenSansRegular"
FontSize="{x:OnPlatform Android=13, WinUI=14, iOS=13}"
FontAttributes="Bold" />
</StackLayout>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</ContentView>
</RefreshView>
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.