Skip to content

list_sectionHeader(_:headerContent:)_argokit

aisleep edited this page Dec 16, 2020 · 1 revision

简介

设置每个章节的顶部视图

声明

func sectionHeader<T>(_ data: [T], @ArgoKit.ArgoKitListBuilder headerContent: @escaping (T) -> View) -> Self where T : ArgoKit.ArgoKitIdentifiable

参数

data

章节顶部视图的数据源,数据源需遵循 ArgoKitIdentifiable 协议

headerContent

章节顶部视图的内容

Clone this wiki locally