Skip to content

Commit

Permalink
Fix status bar style huri000#370
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidFU1989 committed Jun 18, 2024
1 parent 8aef7b1 commit 48bd4ca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Source/Model/EntryAttributes/EKAttributes+StatusBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public extension EKAttributes {
/** Hidden. Doesn't apply to iPhone X */
case hidden

/** Visible with explicit default style */
case `default`

/** Visible with explicit dark style */
case dark

Expand All @@ -37,6 +40,8 @@ public extension EKAttributes {
Note: See *Appearance* */
public var appearance: Appearance {
switch self {
case .`default`:
return (true, .default)
case .dark:
if #available(iOS 13, *) {
return (true, .darkContent)
Expand All @@ -62,8 +67,10 @@ public extension EKAttributes {
switch appearance.style {
case .lightContent:
return .light
default:
case .darkContent:
return .dark
default:
return .`default`
}
}

Expand Down

0 comments on commit 48bd4ca

Please sign in to comment.