Repository navigation
SideMenuKit v1.0.0 #3
Alexuqe
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
SideMenuKit
A lightweight and highly customizable side menu implementation for iOS 15+. SideMenuKit provides an elegant solution for implementing side menu navigation with smooth animations and extensive customization options.
Features
Requirements
Installation
Swift Package Manager
Add the following dependency to your
Package.swiftfile:Or add it through Xcode:
Usage
Basic Implementation
Animation Customization
You can fine-tune the menu animation by adjusting the configuration parameters:
Detailed Custom Cell Implementation
Here's a complete example of a custom cell with icon, title, and selection state handling:
This custom cell implementation includes:
Configuration Options
SideMenuConfiguration
Menu Item Properties
The
SideMenuItemProtocolprovides the following customizable properties:title: Stringicon: UIImage?iconColor: UIColor?iconSize: CGFloat?titleFont: UIFont?attributedTitle: [NSAttributedString.Key: Any]?selectedBackGroundColor: UIColor?cellBackgroundColor: UIColor?cellCornerRadius: CGFloat?backgroundColor: UIColor?viewController: UIViewController?Delegate Methods
Implement
SideMenuDelegateto handle menu item selection:Example Project
Here's a complete example of implementing SideMenuKit:
Best Practices
License
SideMenuKit is available under the MIT license. See the LICENSE file for more info.
This discussion was created from the release SideMenuKit v1.0.0.
All reactions