question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with CollectionView which is wrapped in ContentView

See original GitHub issue

Description

Hello I’m facing an issue with collectionview which is wrapped in contentview. Navigating between custom tabs causes problem with appearing of items in collectionview. It’s really problematic because of that I cannot port my app to Maui. I cant find any workaround 😦 any help will be huge appreciated

Steps to Reproduce

  1. Go to second tab
  2. Add several items
  3. Go to first tab, and then go back again to second tab
  4. Add item. Item will not appear on list.
  5. Item will appear after swipe gesture on CV, or changing phone position to landscape

Link to public reproduction project repository

https://github.com/XamerDev/Maui7/tree/CollViewProblem

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android all

Did you find any workaround?

I cant find any workaround 😦 any help will be huge appreciated

Relevant log output

nothing

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Matmorkcommented, Dec 6, 2022

Facing the same issue. Here is a recording from @XamerDev repro.

Steps:

  • Navigate to red tab
  • Navigate back to green tab
  • Navigate to red tab again
  • Add a couple of items (items are not appearing)
  • Scroll CollectionView to show items
0reactions
Zhanglirong-Winniecommented, Jun 7, 2023

Verified this issue with Visual Studio Enterprise 17.7.0 Preview 1.0. Can repro on android platform with sample project. Maui7-CollViewProblem.zip 11897

Read more comments on GitHub >

github_iconTop Results From Across the Web

UICollectionViewCell improperly sizes itself after calling ...
I have a UICollectionView in my ViewController. This collectionView has a dynamic height so depending on how much text is inside the collectionView...
Read more >
Uicollectionview cell only wraps around text
The uicollectionviewcell is wrapped around a single number I want there to be much more space in the collectionviewcell.
Read more >
net maui how to create collection view as menu and ...
Hello,. Your main purpose is to scroll the item in CarouselView when the title is selected on the top CollectionView, and change the ......
Read more >
Collection View Cells Self-Sizing: Step by Step Tutorial
The present step-by-step guide addresses this issue by explaining how to implement self-sizing collection view cells in iOS from scratch.
Read more >
Building a Collection For SwiftUI (Part 2)
Wrapping UIKit Collection View Into SwiftUI ... A parent content view which displays some Model conforming to ObservableObject into our ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found