LOGO

TDetailBoxView

TDetailBoxView is a simple and flexible UI component fully written in Swift. TDetailBoxView is developed to help users quickly display the detail screen without having to develop from scratch.

Swift 5.0 Version License Email

Example

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

Requirements

Installation

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

pod 'TDetailBoxView'

Usage

import TDetailBoxView
  1. Initial TDetailBoxView
let detailBoxView = TDetailBoxView()
  1. Initial some items for displaying the detail content

items: [TDetailItem] = [
    TDetailItem(title: "Name:", value: "TDetailBoxView"),
    TDetailItem(title: "Author:", value: "fanta1ty"),
    TDetailItem(title: "Contact", value: "[email protected]"),
    TDetailItem(title: "Run:", value: "pod 'TDetailBoxView'")
]
  1. Call function applyData to add items into TDetailBoxView

contentView.detailBoxView.applyData(items: items,
                                    title: "TDetailBoxView",
                                    buttonTitle: "OK",
                                    tipBoxTitle: "Tip: Please use TDetailBoxView for displaying detail UI")
]

til

Requirements

  • iOS 10.0 or later
  • Swift 5.0 or later

Author

fanta1ty, [email protected]

License

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

GitHub

View Github