 public class HJToast: UIView {
     
     // Exposed properties
-    public var font: UIFont = UIFont.systemFontOfSize(12.0)
-    public var textColor: UIColor = UIColor.whiteColor()
-    public var textAlignment: NSTextAlignment = .Center
+    public var font: UIFont = UIFont.preferredFont(forTextStyle: UIFont.TextStyle.footnote)
+    public var textColor: UIColor = UIColor.white
+    public var textAlignment: NSTextAlignment = .center
     public var leftView: UIView?
     public var rightView: UIView?
-    public var toastDuration: NSTimeInterval?
-    public var animateDuration: NSTimeInterval = 0.25
-    public var edgeInsets: UIEdgeInsets = UIEdgeInsetsMake(10, 10, 10, 10)
+    public var toastDuration: TimeInterval?
+    public var animateDuration: TimeInterval = 0.25
+    public var edgeInsets: UIEdgeInsets = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)
     
     
     

            addSubview(_leftView)
            
            let leftViewCenterY = NSLayoutConstraint(item: _leftView,
                                                     attribute: .CenterY,
                                                     relatedBy: .Equal,
                                                     toItem: self,
                                                     attribute: .CenterY,
                                                     multiplier: 1.0,
                                                     constant: 0.0)
            
            let leftViewLeading = NSLayoutConstraint(item: _leftView,
                                                     attribute: .Leading,
                                                     relatedBy: .Equal,
                                                     toItem: self,
                                                     attribute: .Leading,
                                                     multiplier: 1.0,
                                                     constant: edgeInsets.left)
            
            let leftViewWidth = NSLayoutConstraint(item: _leftView,
                                                   attribute: .Width,
                                                   relatedBy: .Equal,
                                                   toItem: nil,
                                                   attribute: .NotAnAttribute,
                                                   multiplier: 1.0,
                                                   constant: 0)
            leftViewWidth.priority = 1
            
            addConstraints([leftViewCenterY, leftViewLeading, leftViewWidth])
        }

        layoutIfNeeded()
        _bottomConstraint.constant = 0
        
        UIView.animate(withDuration: animateDuration, delay: 0.0, options: .curveEaseInOut, animations: {
            self.layoutIfNeeded()
        }) { (bol) in
            self.slideDown()
