Skip to content

Instantly share code, notes, and snippets.

@TarasShu
Last active July 21, 2020 12:48
Show Gist options
  • Save TarasShu/cb0808c620696991d7cf8b62eacc50d5 to your computer and use it in GitHub Desktop.
Save TarasShu/cb0808c620696991d7cf8b62eacc50d5 to your computer and use it in GitHub Desktop.
var colotOfFirstView = UIColor()
if firstView.bounds == lable.bounds
{
colotOfFirstView = .systemRed
} else {
colotOfFirstView = .systemYellow
}
firstView.backgroundColor = colotOfFirstView
lable.backgroundColor = .systemRed
// // func scrollViewDidScroll(_ scrollView: UIScrollView){
// lable.frame = CGRect(x: scrollView.bounds.minX + 150,
// y: scrollView.bounds.minY + 50,
// width: 100,
// height: 50)
// }
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment