NoiseView is a view renders random noise like Noise (video) - Wikipedia.
Warning
github "unhappychoice/NoiseView"
Make sure to add default.metallib to your Copy Bundle Resources section.
class ViewController: UIViewController {
private let metalDevice: MTLDevice? = MTLCreateSystemDefaultDevice()
override func viewDidLoad() {
super.viewDidLoad()
view.addSubview(NoiseView(frame: UIScreen.main.bounds, device: metalDevice))
}
}
Bug reports and pull requests are welcome on GitHub at https://github.com/unhappychoice/NoiseView.
The library is available as open source under the terms of the MIT License.