Skip to content

0xMarK/HorizontalItemPicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HorizontalItemPicker

A convenient horizontal item picker with fast deceleration rate.

Usage example:

HorizontalItemPicker(
    selectedIndex: $selectedIndex,
    items: items,
    itemSize: CGSize(width: 100, height: 100),
    spacingMode: .fixed(spacing: 10),
    sideItemScale: 0.7,
    sideItemAlpha: 1
) { item in
    VStack {
        Text("Item \(item.id)")
            .padding(10)
    }
    .background(
        RoundedRectangle(cornerSize: CGSize(width: 16, height: 16))
            .fill(Color.gray.opacity(0.2))
    )
    .frame(maxWidth: .infinity)
}

About

Horizontal Item Picker with fast deceleration rate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages