Skip to content

Commit

Permalink
add text font
Browse files Browse the repository at this point in the history
  • Loading branch information
Suric zhang committed Nov 3, 2016
1 parent e35aea3 commit 0cebf7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DropdownMenu/DropdownMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ open class DropdownMenu: UIView {
open var defaultBottonMargin: CGFloat = 150
open var topOffsetY: CGFloat = 0

open var textFont: UIFont = UIFont.systemFont(ofSize: 15.0)
open var textColor: UIColor = UIColor(red: 56.0/255.0, green: 56.0/255.0, blue: 56.0/255.0, alpha: 1.0)
open var highlightColor: UIColor = UIColor(red: 3.0/255.0, green: 169.0/255.0, blue: 244.0/255.0, alpha: 1.0)
open var tableViewBackgroundColor: UIColor = UIColor(red: 242.0/255.0, green: 242.0/255.0, blue: 242.0/255.0, alpha: 1.0)
Expand Down Expand Up @@ -271,6 +272,7 @@ extension DropdownMenu: UITableViewDataSource {
}

cell.textLabel?.text = item.title
cell.textLabel?.font = textFont
cell.tintColor = highlightColor
if displaySelected && indexPath == selectedIndexPath {
cell.accessoryType = .checkmark
Expand Down

0 comments on commit 0cebf7e

Please sign in to comment.