Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 672 Bytes

FormsCardKit.md

File metadata and controls

42 lines (29 loc) · 672 Bytes

FormsCardKit

FormsCardKit is tab bar library.

Import

import FormsCardKit

Dependencies

Forms.framework

Usage

var demoCardContentController = DemoFormsCardContentController()
var demoCardController = CardController(demoCardContentController)

Add to parent controller

let overlayView = Components.container.view()
    .with(backgroundColor: Theme.Colors.tertiaryBackground.withAlphaComponent(0.3))
demoCardController.add(to: self, overlay: overlayView)

Card appearance progress

demoCardController.onProgress = { (progress: CGFloat) in }

Close from card

cardController?.close()