Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion PinterestSegment/PinterestSegment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public struct PinterestSegmentStyle {
public var titlePendingHorizontal: CGFloat = 14
public var titlePendingVertical: CGFloat = 14
public var titleFont = UIFont.boldSystemFont(ofSize: 14)
public var selectedTitleFont = UIFont.boldSystemFont(ofSize: 14)
public var normalTitleColor = UIColor.lightGray
public var selectedTitleColor = UIColor.darkGray
public var selectedBorderColor = UIColor.clear
Expand Down Expand Up @@ -286,7 +287,7 @@ public struct PinterestSegmentStyle {
frontLabel.tag = index
frontLabel.text = item.title
frontLabel.textColor = style.selectedTitleColor
frontLabel.font = style.titleFont
frontLabel.font = style.selectedTitleFont
frontLabel.textAlignment = .center
frontLabel.frame = rect
if let selectedImage = item.selectedImage {
Expand Down Expand Up @@ -339,6 +340,15 @@ extension PinterestSegment {
}
}

public var selectedTitleFont: UIFont {
get {
return style.selectedTitleFont
}
set {
style.selectedTitleFont = newValue
}
}

@IBInspectable public var indicatorColor: UIColor {
get {
return style.indicatorColor
Expand Down