Skip to content

Commit

Permalink
memo
Browse files Browse the repository at this point in the history
  • Loading branch information
Cassin01 committed Dec 3, 2023
1 parent c005002 commit d373c9d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script/color.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Foundation
var inDarkMode: Bool {
let mode = UserDefaults.standard.string(forKey: "AppleInterfaceStyle")
return mode == "Dark"
}
print(inDarkMode)

0 comments on commit d373c9d

Please sign in to comment.