Skip to content

一个类似于SwiftUI写法一样的collectionView

License

Notifications You must be signed in to change notification settings

Xixi0218/JYLego

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JYLego

一个类似于SwiftUI写法一样的collectionView

写法如下,以viewModel为item去创建对应的collectionview

var lego: KYLego {
        KYLego {
            KYLegoSection {
                viewModel.items
            }.sectionHeader(SectionHeaderViewModel())
            if viewModel.flag {
                KYLegoSection {
                    CollectionViewCellViewModel()
                    CollectionViewCellViewModel()
                }.sectionHeader(SectionHeaderViewModel())
            }
        }
    }

About

一个类似于SwiftUI写法一样的collectionView

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages