TDetailBoxView - A simple and flexible UI component fully written in Swift
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.
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
- Initial
TDetailBoxView
let detailBoxView = TDetailBoxView()
- Initial some items for displaying the detail content
items: [TDetailItem] = [
TDetailItem(title: "Name:", value: "TDetailBoxView"),
TDetailItem(title: "Author:", value: "fanta1ty"),
TDetailItem(title: "Contact", value: "thinhnguyen12389@gmail.com"),
TDetailItem(title: "Run:", value: "pod 'TDetailBoxView'")
]
- Call function
applyData
to add items intoTDetailBoxView
contentView.detailBoxView.applyData(items: items,
title: "TDetailBoxView",
buttonTitle: "OK",
tipBoxTitle: "Tip: Please use TDetailBoxView for displaying detail UI")
]
Requirements
- iOS 10.0 or later
- Swift 5.0 or later
Author
fanta1ty, thinhnguyen12389@gmail.com
License
TDetailBoxView is available under the MIT license. See the LICENSE file for more info.