Skip to content

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.

License

fanta1ty/TTopImageBottomLabelButton

Repository files navigation

LOGO

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.

Swift 5.0 Version License Platform Email

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. To install it, simply add the following line to your Podfile:

pod 'TTopImageBottomLabelButton'

Usage

import TTopImageBottomLabelButton
  1. Initial TTopImageBottomLabelButton
let topImageBottomLabelButton = TTopImageBottomLabelButton(title: "Top Image Bottom Title", image: UIImage(named: "Image")!)
  1. To override bottom title, please input into customTitleLabel.text property
topImageBottomLabelButton.customTitleLabel.text = "Top Image Bottom Label Button"
  1. To override top image, please add image into topImageView.image property
topImageBottomLabelButton.topImageView.image = UIImage(named: "Image")

til

Requirements

  • iOS 9.3 or later
  • Swift 5.0 or later

Author

fanta1ty, thinhnguyen12389@gmail.com

License

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks