Hi,
I understand that several controls (including system buttons) are animated by the focus engine. I created several buttons but they only get white, shaded and a little bigger when they have the focus, however they do not move when you drag your finger and you can not give them a parallax effect.
Please, your help ... thank you very much!
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = UIColor.white
let button = UIButton(type: .system)
button.setTitle("Btn 1", for: .normal)
button.setTitleColor(UIColor.black, for: .normal)
button.frame = CGRect(x: 500, y: 500, width: 300, height: 100)
view.addSubview(button)
let button2 = UIButton(type: .system)
button2.setTitle("Btn 2", for: .normal)
button2.setTitleColor(UIColor.black, for: .normal)
button2.frame = CGRect(x: 900, y: 500, width: 300, height: 100)
view.addSubview(button2)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}