---
title: "init(forModuleWithName:)"
framework: Screen Saver
role: symbol
role_heading: Initializer
platforms: [macOS 10.0+]
path: "screensaver/screensaverdefaults/init(formodulewithname:)"
---

# init(forModuleWithName:)

Returns a screen saver defaults instance that reads and writes defaults for the specified module.

## Declaration

```swift
convenience init?(forModuleWithName inModuleName: String)
```
