Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tiskender2/ticketkit
A framework that create easily Ticket or Coupon
https://github.com/tiskender2/ticketkit
cocapods coupon framework swift ticket xcode
Last synced: about 17 hours ago
JSON representation
A framework that create easily Ticket or Coupon
- Host: GitHub
- URL: https://github.com/tiskender2/ticketkit
- Owner: tiskender2
- License: mit
- Created: 2020-07-28T13:23:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-30T14:16:08.000Z (over 4 years ago)
- Last Synced: 2024-10-31T16:20:51.287Z (14 days ago)
- Topics: cocapods, coupon, framework, swift, ticket, xcode
- Language: Swift
- Homepage:
- Size: 413 KB
- Stars: 23
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TicketKit
#### TicketKit is a framework that can use as a Ticket, Coupon or any way you like
![github-small](https://i.ibb.co/tKzWdTs/Screen-Shot-2020-07-29-at-09-01-20.png)
```swift
import TicketKitticketView.enrollContentImage.image = UIImage(named: "qr")
ticketView.showEnrollImage()
```
![github-small](https://i.ibb.co/pZnR50G/Screen-Shot-2020-07-29-at-09-09-15.png )
```swift
import TicketKitticketView.enrollContentImage.image = UIImage(named: "soldout")
ticketView.showEnrollImage()
```
![github-small](https://i.ibb.co/4JJ7fYX/Screen-Shot-2020-07-29-at-09-02-58.png )
```swift
import TicketKitticketView.showPurchaseButton() // Default
```
![github-small](https://i.ibb.co/THgdmkn/Screen-Shot-2020-07-29-at-09-00-16.png )
```swift
import TicketKitticketView.hideDetailView()
```## Requirements
Swift `4.2` & `5.0`. Ready for use on iOS 11.3+## Installation
To integrate `TicketKit` into your Xcode project using CocoaPods, specify it in your Podfile:
```bash
platform :ios, '9.0'
use_frameworks!target '' do
pod 'TicketKit', :git => 'https://github.com/tiskender2/TicketKit.git'
end
```
Then, run the following terminal command:
```bash
pod install
```
#### ManualDrag `TicketKit.swift` from the `source` folder into your Xcode project.
## Usage
```swift
import TicketKit
@IBOutlet weak var ticketView: TicketKit!ticketView.contentImage.image = UIImage(named: "joker")
ticketView.contentTitle.text = "Joker"
ticketView.duration.text = "2hr 2min"
ticketView.genre.text = "Drama,Action"
ticketView.rating.text = "8.5"
ticketView.price.text = "$30"
ticketView.subTitle.text = "StoryLine"
ticketView.desc.text = "desc"ticketView.durationTitle.text = "DURATION"
ticketView.genreTitle.text = "GENRE"// to change background Color
ticketView.topView.backgroundColor = .blue
ticketView.bottomView.backgroundColor = .blue
```
If you want to clipped view add below code in `override func draw(_ rect: CGRect)` or `override func viewDidAppear(_ animated: Bool) `
```swift
ticketView.addClips(to: .topView, corner: [.bottom,.top]) // default no clip
ticketView.setupDashedLine(fillColor: UIColor.blue.cgColor) // to change dashed line color, default is white
```
## Apps using this frameworkIf you're using this control, I'd love hearing from you! and
don't forget to `put star ★`## Credits
TicketKit was originally created by [Tolga İskender](https://www.linkedin.com/in/tolga-iskender/)
## License
TicketKit is available under the MIT license. See the LICENSE file for more info.