Xamarin.Forms
Xamarin.Forms copied to clipboard
[Bug] Lines through BoxView (or any shape) inside CollectionView on iOS
Description
On Android, when adding BoxView
s to a CollectionView
, taking up the entire height of the row, it renders perfectly into one large rectangle across all of the rows. The same happens with iOS, except it has lines through it at random intervals (see the photos below).
Steps to Reproduce
- Create a
CollectionView
with aGrid
orRelativeLayout
as the ItemTemplate - Add a
BoxView
to theGrid/RL
and set it to consume the entire height of the view - Add random items to any supported type of
System.Collection
and bind the variable to theItemSource
of theCollectionView
- See the described behaviour
Expected Behavior
The BoxView
s join to form one solid box
Actual Behavior
The BoxView
s join to form one solid box but the box renders with lines in random locations that change every time the collection is reloaded
Basic Information
- Version with issue: 5.0.0.2578
- Last known good version: N/A
- Platform Target Frameworks:
- iOS: 16.4 (build 20E238)
- Android: Android 11.0 SDK Platform 30
- NuGet Packages: (Shared) Algolia.Search, Forms9Patch, GeoHash-CSharp, MagicGradients, Plugin.CloudFirestore, Plugin.FirebaseAuth, Plugin.FirebaseStorage, Xamarin.CommunityToolkit, Xamarin.Essentials, Xamarin.Forms. (iOS) Same plus: Xamarin.Firebase.iOS.CloudMessaging, Xamarin.Firebase.iOS.Crashlytics, Xamarin.Firebase.iOS.Database.
- Affected Devices: Physical iPhone 11 Pro. Not tested with any others as of yet
Environment
Show/Hide Visual Studio info
Visual Studio Community 2022 for Mac
Version 17.6 (build 1575)
Installation UUID: e951be08-8a83-4762-a4a1-5d4c2c0e4f3a
Runtime
.NET 7.0.3 (64-bit)
Architecture: X64
Microsoft.macOS.Sdk 13.1.1007; git-rev-head:8afca776a0a96613dfb7200e0917bb57f9ed5583; git-branch:release/7.0.1xx-xcode14.2
Roslyn (Language Service)
4.6.0-3.23180.6+99e956e42697a6dd886d1e12478ea2b27cceacfa
NuGet
Version: 6.4.0.117
.NET SDK (x64)
SDK: /usr/local/share/dotnet/sdk/7.0.304/Sdks
SDK Versions:
7.0.304
7.0.202
7.0.102
7.0.100
6.0.410
6.0.407
6.0.405
6.0.403
6.0.400
6.0.302
5.0.408
5.0.405
5.0.301
5.0.203
5.0.202
5.0.103
5.0.102
5.0.101
5.0.100
3.1.426
3.1.425
3.1.422
3.1.421
3.1.420
3.1.416
3.1.410
3.1.409
3.1.408
3.1.406
3.1.405
3.1.404
3.1.403
3.1.402
MSBuild SDKs: /Applications/Visual Studio.app/Contents/MonoBundle/MSBuild/Current/bin/Sdks
.NET Runtime (x64)
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
7.0.7
7.0.4
7.0.2
7.0.0
6.0.18
6.0.15
6.0.13
6.0.11
6.0.8
6.0.7
5.0.17
5.0.14
5.0.7
5.0.6
5.0.5
5.0.3
5.0.2
5.0.1
5.0.0
3.1.32
3.1.31
3.1.28
3.1.27
3.1.26
3.1.22
3.1.16
3.1.15
3.1.14
3.1.12
3.1.11
3.1.10
3.1.9
3.1.8
2.1.23
2.1.22
Xamarin.Profiler
Version: 1.8.0.49
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
Updater
Version: 11
Xamarin.Android
Version: 13.2.0.6 (Visual Studio Community)
Commit: xamarin-android/d17-5/a200af1
Android SDK: /Users/mswallow/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
12.0 (API level 31)
11.0 (API level 30)
7.1 (API level 25)
9.0 (API level 28)
SDK Command-line Tools Version: 7.0
SDK Platform Tools Version: 33.0.2
SDK Build Tools Version: 33.0.0
Build Information:
Mono: 6dd9def
Java.Interop: xamarin/java.interop/d17-5@149d70fe
SQLite: xamarin/sqlite/3.40.1@68c69d8
Xamarin.Android Tools: xamarin/xamarin-android-tools/d17-5@9f02d77
Microsoft Build of OpenJDK
Java SDK: /Library/Java/JavaVirtualMachines/microsoft-11.jdk
11.0.16.1
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
Eclipse Temurin JDK
Java SDK: /Library/Java/JavaVirtualMachines/temurin-8.jdk
1.8.0.302
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
Android SDK Manager
Version: 17.6.0.50
Hash: a715dca
Branch: HEAD
Build date: 2023-06-14 17:06:06 UTC
Android Device Manager
Version: 0.0.0.1309
Hash: 06e3e77
Branch: HEAD
Build date: 2023-06-14 17:06:06 UTC
Apple Developer Tools
Xcode: 14.3.1 21815
Build: 14E300c
Xamarin.Mac
Not Installed
Xamarin.iOS
Version: 16.4.0.6 Visual Studio Community
Hash: 97731c92c
Branch: xcode14.3
Build date: 2023-04-11 22:38:36-0400
Xamarin Designer
Version: 17.6.3.9
Hash: 2648399ae8
Branch: remotes/origin/d17-6
Build date: 2023-06-14 17:06:02 UTC
Build Information
Release ID: 1706001575
Git revision: d32bcc352feed2f1f54e237e23e5c375d86eaf9e
Build date: 2023-06-14 17:04:22+00
Build branch: release-17.6
Build lane: release-17.6
Operating System
Mac OS X 13.2.1
Darwin 22.3.0 Darwin Kernel Version 22.3.0
Mon Jan 30 20:42:11 PST 2023
root:xnu-8792.81.3~2/RELEASE_X86_64 x86_64
Screenshots
iOS:
Android:
Workaround
I tried using other shapes such as Ellipse
but these did not work either. I have not found a workaround.