Skip to content
This repository was archived by the owner on Nov 15, 2020. It is now read-only.
This repository was archived by the owner on Nov 15, 2020. It is now read-only.

TableSectionView, TableSection, CollectionSection and CollectionSectionView are open to subclass #18

@wow-such-amazing

Description

@wow-such-amazing

I think it would be nice to make this class open instead of public. This way we will be able to create subclasses the same way like we do for cell adapters. Now we need to have this function in our module.

func createHeader(model: SectionLoaderHeaderViewModel) -> TableHeaderFooterProtocol {
        let header = TableSectionView<SectionLoaderHeaderView>()
        header.on.height = { _ in
            return 48.0
        }
        header.on.dequeue = { context in
            context.view?.configure(with: model)
        }
        return header
    }

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions