CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

DPTransparentEdgesTableView 0.1.1

DPTransparentEdgesTableView 0.1.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Dec 2014
SPMSupports SPM

Maintained by Denis Prokopchuk.




DPTransparentEdgesTableView-Swift

Table and scroll view with transparent top and bottom edges. Written in Swift

BackgroundImage

Easy to use

// Create instance of DPTransparentEdgesTableView or DPTransparentEdgesScrollView
let tableView = DPTransparentEdgesTableView(frame: CGRectMake(0, 20, view.frame.size.width, view.frame.size.height - 20))

// Set factor that describe length of the gradient
// length = viewHeight * gradientFactor
tableView.gradientLengthFactor = 0.3

// Start use table
tableView.delegate = self
tableView.dataSource = self
view.addSubview(tableView)

Installation

DPTransparentEdgesTableView is available through CocoaPods.

To install add the following line to your Podfile:

pod 'DPTransparentEdgesTableView'