Skip to content

Add a nib initializer to avoid hard coded nib name#15

Open
JuyeonYu wants to merge 2 commits intodevxoul:masterfrom
JuyeonYu:master
Open

Add a nib initializer to avoid hard coded nib name#15
JuyeonYu wants to merge 2 commits intodevxoul:masterfrom
JuyeonYu:master

Conversation

@JuyeonYu
Copy link

@JuyeonYu JuyeonYu commented Dec 2, 2021

This is one of inevitable hard coded string cases for nib.
-> ReusableCell(nibName: "MyCell")

In this pull request, we can init it without hard coded string anymore.
-> ReusableCell(nibType: MyCell.self)

That will be ok on condition of same string between nib and class name.

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

Successfully merging this pull request may close these issues.

1 participant