Highly Customisable Simple side/slide menu with SwiftUI in Ios

CDSideMenu



An elegant side menu for you app, made with love and SwiftUI.

                                     

  • language: Swift
  • platform: ios
  • device: iphone/ipad
  • license: MIT

Tag

Download


Installation

At the moment, the library is only available though Github. A Pod will arrive later.


Git

You can use Git to clone CDSideMenu and its example project:
git clone https://github.com/christophedellac/CDSideMenu

Manually


Download and drop the CDSideMenuSrc (CDSideMenu/CDSideMenuSrc) folder in your project.

Usage



To get the full benefits of CDSideMenu, don’t forget to check out the CDSideMenuExample XCode project.

After adding the source folder into your project, you can start using CDSideMenu by following those 2 steps:

 Step 1: configure your CDSideMenu by creating your views and a CDSideMenuConfiguration object. Add your menu items and specific configuration to it. Refer to the example that you can find in the ContentView.swift file in the example project.

 Step 2: create a NavigationLink to CDSideMenuMainView, which will become your main view, containing your menu items and the side menu.


NavigationLink(destination: CDSideMenuMainView()
                    .environmentObject(createConfiguration()), label: {
                        Text("Now, click here ;) ")
                            .font(.system(.subheadline, design: .monospaced))
                })

Features


An animated Side Menu with your own menu item


A high level of configuration to fit your app design3 pre-configured styles for your convenience


A verbose configurator to let you know if your current configuration is right, or not


An observable UserData class model that you can extend to add your own properties


A list of example views to illustrate the usage of this library

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *