Skip to content
📺 Make some noise
Swift Metal Objective-C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example
Images
NoiseView.xcodeproj
NoiseView
CODE_OF_CONDUCT.md
LICENSE
README.md

README.md

NoiseView

NoiseView is a view renders random noise like Noise (video) - Wikipedia.

Noise

Warning ⚠️: Due to using Metal API, this view does not render the noise correctly on simulators or some devices.

Installation

Carthage

github "unhappychoice/NoiseView"

Add metal lib

Make sure to add default.metallib to your Copy Bundle Resources section.

Usage

class ViewController: UIViewController {
    private let metalDevice: MTLDevice? = MTLCreateSystemDefaultDevice()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        view.addSubview(NoiseView(frame: UIScreen.main.bounds, device: metalDevice))
    }
}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/unhappychoice/NoiseView.

License

The library is available as open source under the terms of the MIT License.

You can’t perform that action at this time.