Created
August 13, 2019 11:57
-
-
Save angelabauer/9d94ee98153b84681a63e7744077c9f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// Dicee-iOS13 | |
// | |
// Created by Angela Yu on 11/06/2019. | |
// Copyright © 2019 London App Brewery. All rights reserved. | |
// | |
import UIKit | |
class ViewController: UIViewController { | |
@IBOutlet weak var diceImageView1: UIImageView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
diceImageView1.image = #imageLiteral(resourceName: "DiceSix") | |
//Who What Value | |
diceImageView1.alpha = 0.5 | |
} | |
} | |
was great until i started the Alpha step , green background took over everything !?
@wellbegen In the document outline pane you can sort the layers of objects by dragging each object. It looks like you need to move the background image to the back so that the other objects are visible.
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var diceImageView1: UIImageView!
/// <#Description#>
override func viewDidLoad() {
super.viewDidLoad()
diceImageView1.image = #imageLiteral(resourceName: "DiceSix")
diceImageView1.alpha = 0.5
}
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
new challlenge for rolling to dice 2 successful!