EurekaCommunity / ViewRow

ViewRow is a Eureka row that allows you to display any UIView (or UIView sunclass) within a Eureka row. Views can be created in code or loaded from nib files.
MIT License
77 stars 16 forks source link

Is the README outdated? #6

Closed Sweeper777 closed 6 years ago

Sweeper777 commented 6 years ago

In the README, ViewRow is shown to have a generic parameter, but when I installed the pod (version 0.2.0), ViewRow is not a generic class.

Is the README outdated?

alldritt commented 6 years ago

The README file is up to date. ViewRow is a generic class:

public final class ViewRow<ViewType : UIView>: _ViewRow<ViewType>, RowType { ... }
Sweeper777 commented 6 years ago

But somehow I can use it without the generic argument. Isn't that weird?

alldritt commented 6 years ago

In that case, you are specifying that ViewRow's view property of type UIView.

Sweeper777 commented 6 years ago

I've never seen that behaviour in swift before... anyway, thanks for the info!