ScreenSaverView
An abstract class that defines the interface for subclassers to interact with the screen saver infrastructure.
Declaration
class ScreenSaverViewOverview
ScreenSaverView provides the interface for your screen saver, including the content you animate onscreen and an optional configuration sheet. Create your own custom subclass and add it to your screen saver bundle. Use your subclass to create the animations that you want to appear onscreen, and to specify additional animation details.
You can draw from your view’s draw(_:) method, or you can draw directly from the animateOneFrame() method. If you prefer to use the draw(_:) method, use the animateOneFrame() method to call the setNeedsDisplay(_:) method and specify the portions of your view that require updates.