Skip to content

Commit

Permalink
Lowercase the SwiftTweaksImage enum cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Clark committed Oct 30, 2016
1 parent 032fc7a commit 76d8a2d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions SwiftTweaks/FloatingTweakGroupViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ internal final class FloatingTweakGroupViewController: UIViewController {

private let closeButton: UIButton = {
let button = UIButton()
let buttonImage = UIImage(swiftTweaksImage: .FloatingCloseButton).withRenderingMode(.alwaysTemplate)
let buttonImage = UIImage(swiftTweaksImage: .floatingCloseButton).withRenderingMode(.alwaysTemplate)
button.setImage(buttonImage.imageTintedWithColor(AppTheme.Colors.controlTinted), for: UIControlState())
button.setImage(buttonImage.imageTintedWithColor(AppTheme.Colors.controlTintedPressed), for: .highlighted)
return button
Expand All @@ -116,7 +116,7 @@ internal final class FloatingTweakGroupViewController: UIViewController {

fileprivate let restoreButton: UIButton = {
let button = UIButton()
let buttonImage = UIImage(swiftTweaksImage: .FloatingMinimizedArrow).withRenderingMode(.alwaysTemplate)
let buttonImage = UIImage(swiftTweaksImage: .floatingMinimizedArrow).withRenderingMode(.alwaysTemplate)
button.setImage(buttonImage.imageTintedWithColor(AppTheme.Colors.controlSecondary), for: UIControlState())
button.setImage(buttonImage.imageTintedWithColor(AppTheme.Colors.controlSecondaryPressed), for: .highlighted)
button.isHidden = true
Expand Down
2 changes: 1 addition & 1 deletion SwiftTweaks/TweakCollectionViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ fileprivate final class TweakGroupSectionHeader: UITableViewHeaderFooterView {

private let floatingButton: UIButton = {
let button = UIButton(type: .custom)
let buttonImage = UIImage(swiftTweaksImage: .FloatingPlusButton).withRenderingMode(.alwaysTemplate)
let buttonImage = UIImage(swiftTweaksImage: .floatingPlusButton).withRenderingMode(.alwaysTemplate)
button.setImage(buttonImage.imageTintedWithColor(AppTheme.Colors.controlTinted), for: UIControlState())
button.setImage(buttonImage.imageTintedWithColor(AppTheme.Colors.controlTintedPressed), for: .highlighted)
return button
Expand Down
2 changes: 1 addition & 1 deletion SwiftTweaks/TweakTableCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ internal final class TweakTableCell: UITableViewCell {
return textField
}()
private let disclosureArrow: UIImageView = {
let disclosureArrowImage = UIImage(swiftTweaksImage: .DisclosureIndicator)
let disclosureArrowImage = UIImage(swiftTweaksImage: .disclosureIndicator)
let imageView = UIImageView(image: disclosureArrowImage.withRenderingMode(.alwaysTemplate))
imageView.contentMode = .center
imageView.tintColor = AppTheme.Colors.controlSecondary
Expand Down
8 changes: 4 additions & 4 deletions SwiftTweaks/UIImage+SwiftTweaks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import UIKit
internal extension UIImage {

enum SwiftTweaksImage: String {
case DisclosureIndicator = "disclosure-indicator"
case FloatingPlusButton = "floating-plus-button"
case FloatingCloseButton = "floating-ui-close"
case FloatingMinimizedArrow = "floating-ui-minimized-arrow"
case disclosureIndicator = "disclosure-indicator"
case floatingPlusButton = "floating-plus-button"
case floatingCloseButton = "floating-ui-close"
case floatingMinimizedArrow = "floating-ui-minimized-arrow"
}

convenience init(swiftTweaksImage: SwiftTweaksImage) {
Expand Down

0 comments on commit 76d8a2d

Please sign in to comment.