Latest 1.2.1
Homepage https://github.com/Zerojian/BrickBatView
License MIT
Platforms ios 8.0
Dependencies SnapKit
Authors

CI Status
Version
License
Platform

example

BrickBatView It can be simply composed of view components into a alert view. Each component is created by you

Example

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

Requirements

  • iOS 8.0+
  • Swift4

Installation

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

pod 'BrickBatView'

Usage

Example
BrickBatView(inView: view)?
      .setup()
      .addTitleItem(title: "Title", infoicon: nil)
      .addMessageItem(text: "message")
      .addButtonItem(title: ["cancel", "done"], style: .fill)
      .show()       
Setup
BrickBatView(inView: view)?
      .handle(action: { (index) in
          print("sender index: (index)")
      }, tapHidden: true)

      .identifier("BrickView_SETUP")

      .lifeCyle(showFinishedAction: { (show) in
          print("isShowFinished")
      }, hiddenAction: {
          print("isHidden")
      })
      .offset(10)
      .position(.bottom, edgeInster: 20)
...
Extension
extension BrickBatView {

func addExtensionTextField() -> Self {

      let textField = UITextField()
      textField.bounds.size.height = 50
      textField.placeholder = "BrickView addTextField Extension"
      textField.borderStyle = .roundedRect

      return addContentView(textField)
}

brickBatView
      .addExtensionTextField()
... 
Extension 2
let buttonView = ButtonView()   
brickBatView
      .addContentView(buttonView, controls: buttonView.button)
...

let item = BrickBarItem()
brickBatView
      .addBrickItem(item)
...

let imageView = UIimageView()
brickBatView
      .addGesture([imageView])
...

Author

ZeroJian, [email protected]

License

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

Latest podspec

{
    "name": "BrickBatView",
    "version": "1.2.1",
    "summary": "BrickBatView",
    "description": "BrickBatView is a simple create alertView.",
    "homepage": "https://github.com/Zerojian/BrickBatView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ZeroJian": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ZeroJian/BrickBatView.git",
        "tag": "1.2.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "4.0",
    "source_files": "BrickBatView/Classes/**/*",
    "dependencies": {
        "SnapKit": []
    }
}

Pin It on Pinterest

Share This