Contents

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

Author

| <img src="https://avatars2.githubusercontent.com/u/11488337?s=460&v=4" width="120px;"/> | DevLiuSir<br/><br/><sub>Software Engineer</sub><br/> [<img align="center" src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/twitter.svg" height="20" width="20"/>][1] [<img align="center" src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/github.svg" height="20" width="20"/>][2] [<img align="center" src="https://raw.githubusercontent.com/iconic/open-iconic/master/svg/globe.svg" height="20" width="20"/>][3]| | :------------: | :------------: |

[1]: https://twitter.com/LiuChuan_ [2]: https://github.com/DevLiuSir [3]: https://devliusir.com/

Package Metadata

Repository: DevLiuSir/LCDropDownPicker

Stars: 2

Forks: 0

Open issues: 0

Default branch: main

Primary language: swift

License: MIT

README: README.md