swi

SwiftDrawer

A Drawer implement on SwiftUI

Showing:

Popularity

Downloads/wk

0

GitHub Stars

53

Maintenance

Last Commit

2yrs ago

Contributors

0

Package

Dependencies

0

License

MIT

Categories

Readme

SwiftDrawer

CI Status Version License Platform

Demo

list

Use

import SwiftUI
import SwiftDrawer
struct ContentView : View {
    var body: some View {
      Drawer()
        .setSlider(view: SliderView(type: .leftRear))
        .setSlider(view: Slider2View(type: .rightFront))
        .setMain(view: HomeView())
    }
}

Control

  @EnvironmentObject public var drawerControl: DrawerControl


  public func setSlider<Slider: SliderViewProtocol>(view: Slider,
                                                  widthType: SliderWidth = .percent(rate: 0.6),
                                                  shadowRadius: Length = 10)

  public func setMain<Main: View>(view: Main)
  public func show(type: SliderType, isShow: Bool)
  public func hideAllSlider()

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

SwiftDrawer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SwiftDrawer'

Author

MillmanY, millmanyang@gmail.com

License

SwiftDrawer is available under the MIT license. See the LICENSE file for more info.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100