https://github.com/fanta1ty/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.
https://github.com/fanta1ty/tdetailboxview
box cocoapods detail framework ios ios10 lib pod swift swift5 uikit uiview view
Last synced: 5 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/fanta1ty/tdetailboxview
- Owner: fanta1ty
- License: mit
- Created: 2022-08-04T07:33:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-05T07:29:45.000Z (over 3 years ago)
- Last Synced: 2025-02-28T10:00:28.279Z (about 1 year ago)
- Topics: box, cocoapods, detail, framework, ios, ios10, lib, pod, swift, swift5, uikit, uiview, view
- Language: Swift
- Homepage:
- Size: 147 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# 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.
[](https://developer.apple.com/swift/)
[](https://cocoapods.org/pods/TDetailBoxView)
[](https://cocoapods.org/pods/TDetailBoxView)
[](thinhnguyen12389@gmail.com)
## 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](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'TDetailBoxView'
```
## Usage
```swift
import TDetailBoxView
```
1) Initial ``TDetailBoxView``
```swift
let detailBoxView = TDetailBoxView()
```
2) Initial some items for displaying the detail content
```swift
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'")
]
```
3) Call function ``applyData`` to add items into ``TDetailBoxView``
```swift
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.