https://github.com/fanta1ty/ttopimagebottomlabelbutton
TTopImageBottomLabelButton is a simple and flexible UI component fully written in Swift. TTopImageBottomLabelButton is developed to help programmers create a button with top image and bottom title quickly without having to write many lines of codes.
https://github.com/fanta1ty/ttopimagebottomlabelbutton
bottom button framework image ios ios9 label lib library swift swift5 uikit
Last synced: 3 months ago
JSON representation
TTopImageBottomLabelButton is a simple and flexible UI component fully written in Swift. TTopImageBottomLabelButton is developed to help programmers create a button with top image and bottom title quickly without having to write many lines of codes.
- Host: GitHub
- URL: https://github.com/fanta1ty/ttopimagebottomlabelbutton
- Owner: fanta1ty
- License: mit
- Created: 2022-08-04T06:47:49.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-04T07:24:47.000Z (almost 3 years ago)
- Last Synced: 2025-02-28T21:05:38.166Z (4 months ago)
- Topics: bottom, button, framework, image, ios, ios9, label, lib, library, swift, swift5, uikit
- Language: Swift
- Homepage:
- Size: 142 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# TTopImageBottomLabelButton
TTopImageBottomLabelButton is a simple and flexible UI component fully written in Swift. TTopImageBottomLabelButton is developed to help programmers create a button with top image and bottom title quickly without having to write many lines of codes.
[](https://developer.apple.com/swift/)
[](https://cocoapods.org/pods/TTopImageBottomLabelButton)
[](https://cocoapods.org/pods/TTopImageBottomLabelButton)
[](https://cocoapods.org/pods/TTopImageBottomLabelButton)
[]([email protected])## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
## Installation
TTopImageBottomLabelButton is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'TTopImageBottomLabelButton'
```## Usage
```swift
import TTopImageBottomLabelButton
```1) Initial ``TTopImageBottomLabelButton``
```swift
let topImageBottomLabelButton = TTopImageBottomLabelButton(title: "Top Image Bottom Title", image: UIImage(named: "Image")!)
```2) To override bottom title, please input into ``customTitleLabel.text`` property
```swift
topImageBottomLabelButton.customTitleLabel.text = "Top Image Bottom Label Button"
```3) To override top image, please add image into ``topImageView.image`` property
```swift
topImageBottomLabelButton.topImageView.image = UIImage(named: "Image")
```
## Requirements
- iOS 9.3 or later
- Swift 5.0 or later## Author
fanta1ty, [email protected]
## License
TTopImageBottomLabelButton is available under the MIT license. See the LICENSE file for more info.