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.
To run the example project, clone the repo, and run pod install
from the Example directory first.
TDetailBoxView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'TDetailBoxView'
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")
]
- iOS 10.0 or later
- Swift 5.0 or later
fanta1ty, thinhnguyen12389@gmail.com
TDetailBoxView is available under the MIT license. See the LICENSE file for more info.