 
         self.frostedView.frame = self.view.frame
         self.view.addSubview(self.frostedView)
-
-        let vibrancy = UIVibrancyEffect(blurEffect: UIBlurEffect(style: .dark))
+        
+        var blurEffect:UIBlurEffect.Style = .dark
+        if #available(iOS 13.0, *) {
+            blurEffect = .systemUltraThinMaterialDark
+        }
+        
+        let vibrancy = UIVibrancyEffect(blurEffect: UIBlurEffect(style: blurEffect))
         let vibrancyView = UIVisualEffectView(effect: vibrancy)
         vibrancyView.isUserInteractionEnabled = true
         vibrancyView.frame = self.frostedView.frame

        vibrancyView.contentView.addSubview(v2exLabel);
        v2exLabel.snp.makeConstraints{ (make) -> Void in
            make.centerX.equalTo(vibrancyView)
            make.top.equalTo(vibrancyView).offset(40)
        }

        let v2exSummaryLabel = UILabel()

            make.height.equalTo(38)
        }
        
        self.codeImageView.backgroundColor = UIColor(white: 1, alpha: 0.2)
        self.codeImageView.layer.cornerRadius = 3;
        self.codeImageView.clipsToBounds = true
        self.codeImageView.isUserInteractionEnabled = true
        self.view.addSubview(self.codeImageView)
        self.codeImageView.snp.makeConstraints { (make) in
            make.top.bottom.equalTo(self.codeTextField)
            make.left.equalTo(self.codeTextField.snp.right).offset(3)
            make.right.equalTo(self.passwordTextField)
        }
        self.codeImageView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(refreshCode)))
