Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cosmos RTL not working properly inside UITableView #151

Open
mubashirhussain opened this issue Nov 19, 2019 · 2 comments
Open

Cosmos RTL not working properly inside UITableView #151

mubashirhussain opened this issue Nov 19, 2019 · 2 comments

Comments

@mubashirhussain
Copy link

Please consider submitting the following information (if relevant):

  • Library setup method: file, Carthage, CocoaPods or Swift Package Manager.
  • Version of the library. Example: 20.0.1
  • Xcode version. Example: 11.1
  • OS version. Example: iOS 13.1

Half of the rows displayed are correct but the other half created from the reused cell is not correct.

Screen Shot 2019-11-19 at 4 15 17 PM

@abdallahnh
Copy link

Having the same issue, was this solved?

@freemansion
Copy link

Had the same issue with CosmosView instance embedded into UICollectionViewCell and RTL content semantics.
My workaround to bypass this issue is to wrap view configuration code into async update with GCD.

if RTL {
  DispatchQueue.main.async {
      self.ratingView.rating = stars
  }
} else {
    ratingView.rating = stars
}

Aforementioned hack, schedules ratingView aka CosmosView is being updated after collection view methods did their job. Looks like race condition issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants