 import UIKit
 
 class ViewController: UIViewController,AUAlertMessageDelegate,UIScrollViewDelegate {
-
-//    let imageview = UIImageView(image: UIImage.init(named: "image.jpg"))
-//    let scrollView = UIScrollView.init()
     
     override func viewDidLoad() {
         super.viewDidLoad()

        self.view.addSubview(imageview)
        imageview.isUserInteractionEnabled = true
        imageview.enableImageZoom = true
        imageview.image = UIImage(named: "image.jpg")
        
        //imageview.imageWithURL("http://swmini.hu/wp-content/uploads/2016/11/2WYfLt.jpg", completionHandler:{(isSuccess) in
        //})
        
    }
    
    /*
     func scrollViewDidZoom(_ scrollView: UIScrollView) {
        let imageViewSize = imageview.frame.size
        let scrollViewSize = scrollView.bounds.size
        
        let verticalPadding = imageViewSize.height < scrollViewSize.height ? (scrollViewSize.height - imageViewSize.height) / 2 : 0
        let horizontalPadding = imageViewSize.width < scrollViewSize.width ? (scrollViewSize.width - imageViewSize.width) / 2 : 0
        
        scrollView.contentInset = UIEdgeInsets(top: verticalPadding, left: horizontalPadding, bottom: verticalPadding, right: horizontalPadding)
    }
    
    
    func viewForZooming(in scrollView: UIScrollView) -> UIView? {
        return imageview
    }
    
     func setZoomScale() {
        
//        let imageViewSize = imageview.bounds.size
//        let scrollViewSize = scrollView.bounds.size
//        let widthScale = scrollViewSize.width / imageViewSize.width
//        let heightScale = scrollViewSize.height / imageViewSize.height
        
        scrollView.minimumZoomScale = 0.1
        scrollView.maximumZoomScale = 3.0
        scrollView.zoomScale = 1.0
    }
    */

    func auDateExamples() {
        let dateFormatter = DateFormatter()
        dateFormatter.dateFormat = "dd/MM/yyyy"

        auStringExamples()
        auDateExamples()
        auImageViewExamples()
    }
    
    func auImageViewExamples() {
        let imageview = AUImageView(frame: CGRect(x: 20, y: 350, width: self.view.frame.size.width - 40, height: 200))
