SHARE
TWEET

Untitled

lalalalalalalaalalla Jul 3rd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. //  ViewController.swift
  3. //  TestProduct
  4. //
  5. //  Created by Yan Olerinskiy on 01/07/2019.
  6. //  Copyright © 2019 Yan Olerinskiy. All rights reserved.
  7. //
  8.  
  9. import UIKit
  10.  
  11.  
  12.  
  13. class ViewController: UIViewController {
  14.  
  15.     @IBOutlet weak var progress: UIProgressView!
  16.     @IBOutlet weak var button: UIButton!
  17.     override func viewDidLoad() {
  18.         super.viewDidLoad()
  19.         // Do any additional setup after loading the view, typically from a nib.
  20.         progress.transform = progress.transform.scaledBy(x: 1, y: 8)
  21.         progress.trackTintColor = UIColor(red: 1.0, green: 0.4, blue: 0.4, alpha: 1.0)
  22.         progress.progress = 0
  23.     }
  24.     @IBAction func button(_ sender: Any) {
  25.         progress.progress = Float.random(in: 0...100)/100
  26.     }
  27.    
  28.    
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top