I'm using the iOS MaterialKit to create a button on my view.
The sample code they give is:
let button = MKButton(frame: CGRect(x: 10, y: 10, width: 100, height: 35)) button.maskEnabled = true button.rippleLocation = .TapLocation button.rippleLayerColor = UIColor.MKColor.LightGreen
My question is, how can I bring this button to the front so that it is on top of all my other elements? I have tried
self.view.bringSubviewToFront(button), although that had no effect at all.