Skip to content

Latest commit

 

History

History
87 lines (62 loc) · 3.91 KB

README.md

File metadata and controls

87 lines (62 loc) · 3.91 KB

 LCDropDownPicker is a custom animation type drop-down menu bar library written in SwiftUI.

Swift Versions Supported Platforms

Design

Preview 1 Preview 2

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

Author

DevLiuSir

Software Engineer