CocoaPods trunk is moving to be read-only. Read more on the blog, there are 16 months to go.

AntViewer_ios 0.3.16

AntViewer_ios 0.3.16

Maintained by Nick94.



 
Depends on:
Firebase/Core~> 5.11
Firebase/Auth>= 0
Firebase/Firestore>= 0
 

  • By
  • Mykola Vaniurskyi

AntViewer_ios

Version License Platform

Example

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

Requirements

iOS 11.3 +

Installation

AntViewer_ios is available through CocoaPods. To install it, simply add the following line to your Podfile: pod 'AntViewer_ios'. And run $ pod install

Usage

Programmatically:

class ViewController: UIViewController {

  var widget: AntWidget! {
    didSet {
      view.addSubview(widget)
      widget.bottomMargin = 30
      widget.rightMargin = 40
    }
  }

  override func viewDidLoad() {
    super.viewDidLoad()
    widget = AntWidget()
    widget.onViewerAppear = { [weak self] _ in
      self?.changeSomething()
    }
  }
}

Or by interface builder: Just add UIView, type AntWidget to class field, link to outlet. Thats all.

Property Type Description
isLightMode Bool There are two widget appearance modes: light & dark. By default false.
bottomMargin Int Bottom margin. Default: 20.
rightMargin Int Right margin. Default: 20.
onViewerAppear Closure Called when the user opens the widget controller.
onViewerDisappear Closure Called when the user dismisses the widget controller.

Author

Mykola Vaniurskyi, [email protected]

License

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