<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ScreenSaver",
  "identifier" : "/documentation/ScreenSaver/ScreenSaverDefaults/init(forModuleWithName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Screen Saver"
    ],
    "preciseIdentifier" : "c:objc(cs)ScreenSaverDefaults(cm)defaultsForModuleWithName:"
  },
  "title" : "init(forModuleWithName:)"
}
-->

# init(forModuleWithName:)

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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)