Skip to content

A custom animation type drop-down menu bar library written in SwiftUI.

License

Notifications You must be signed in to change notification settings

DevLiuSir/LCDropDownPicker

Repository files navigation

 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

About

A custom animation type drop-down menu bar library written in SwiftUI.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages