Skip to content

Instantly share code, notes, and snippets.

View smhemel's full-sized avatar
😊
Happy

S M HEMEL smhemel

😊
Happy
  • Enosis Solutions
  • Dhaka, Bangladesh.
  • 13:50 (UTC +06:00)
View GitHub Profile
// Add your project and customize you UIImageViewer.
import UIKit
@IBDesignable
class UIImageViewX: UIImageView {
// MARK: - Properties
@IBInspectable public var borderColor: UIColor = UIColor.clear {
import UIKit
@IBDesignable
class UIButtonX: UIButton {
enum FromDirection:Int {
case Top = 0
case Right = 1
case Bottom = 2
case Left = 3
//
// CustomUIViewClass.swift
//
// Created by S M HEMEL on 12/09/18.
// Copyright © 2018 S M HEMEL. All rights reserved.
//
import UIKit
@IBDesignable
extension UIButton {
func pulsate() {
let pulse = CASpringAnimation(keyPath: "transform.scale")
pulse.duration = 0.6
pulse.fromValue = 0.95
pulse.toValue = 1.0
pulse.autoreverses = true
pulse.repeatCount = 2