DevLiuSir/LCDropDownPicker
A custom animation type drop-down menu bar library written in SwiftUI.
How to use
LCDropDownPicker(
selectedItem: $selectedOption,
placeholder: "Select an option",
position: .top,
menuItems: items,
lightModeBackgroundColor: .white,
darkModeBackgroundColor: .black,
lightModeTextColor: .black,
darkModeTextColor: .white,
isBorder: false,
borderColor: .gray,
expandedHeight: 300,
cornerRadius: 15
)
.padding()
.onChange(of: selectedOption) { (oldValue, newValue) in
print("Selected: \(newValue), previous old value: \(oldValue)")
}
SwiftPackage
Add https://github.com/DevLiuSir/LCDropDownPicker in the “Swift Package Manager” tab in Xcode.
License
MIT License
Copyright (c) 2024 Marvin
Package Metadata
Repository: DevLiuSir/LCDropDownPicker
Stars: 2
Forks: 0
Open issues: 0
Default branch: main
Primary language: swift
License: MIT
README: README.md