The Write.as desktop (GUI) app for macOS.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
315 B

  1. //
  2. // Created by Matt Baer on 7/29/17.
  3. // Copyright (c) 2017 A Bunch Tell. All rights reserved.
  4. //
  5. import Foundation
  6. class Preferences {
  7. class func getFontSize() -> CGFloat {
  8. let size = Int(UserDefaults.standard.string(forKey: "editor_text_size") ?? "16") ?? 16
  9. return CGFloat(size)
  10. }
  11. }