//
//  ButtonForCustomHighlighted.swift
//  kt
//
//  Created by Alexandr Zalutskiy on 16.01.15.
//  Copyright (c) 2015 Alexandr Zalutskiy. All rights reserved.
//

import UIKit

class ButtonForCustomHighlighted: UIButton {
  @IBOutlet weak var additionalView : UIView?
  
  override var highlighted: Bool {
    didSet {
      if (highlighted) {
        
        additionalView?.alpha = 0.5
      }
      else {
        alpha = 1.0
        additionalView?.alpha = 1.0
      }
      
    }
  }
}
