Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

Row doesn't show with custom identifier #1

Open
migfabio opened this issue Oct 11, 2017 · 1 comment
Open

Row doesn't show with custom identifier #1

migfabio opened this issue Oct 11, 2017 · 1 comment

Comments

@migfabio
Copy link

migfabio commented Oct 11, 2017

When you setup a custom identifier in IB with storyboards and in your custom UITableViewCell you write
public static var reuseIdentifier: String = "something"
the cell doesn't show up.

I suppose an overlapping with reuseIdentifier in UITableViewCell class because I renamed the static variable reuseIdentifier into DeclarativeCell with a different name (I used, as example, flowReuseIdentifier) and it works.

I could open a PR because I need to test with XIB too.

@migfabio
Copy link
Author

I isolated the issue creating a Playground. Have a look

https://gist.github.com/migfabio/15b3141f2728de68c1ee9e0b58725145

If you comment out the DeclarativeCell extension, you'll get this error into Row class

error: instance member 'reuseIdentifier' cannot be used on type 'Cell'

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

No branches or pull requests

1 participant