Skip to content

Commit 48bd4ca

Browse files
committed
Fix status bar style huri000#370
1 parent 8aef7b1 commit 48bd4ca

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Source/Model/EntryAttributes/EKAttributes+StatusBar.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public extension EKAttributes {
2222
/** Hidden. Doesn't apply to iPhone X */
2323
case hidden
2424

25+
/** Visible with explicit default style */
26+
case `default`
27+
2528
/** Visible with explicit dark style */
2629
case dark
2730

@@ -37,6 +40,8 @@ public extension EKAttributes {
3740
Note: See *Appearance* */
3841
public var appearance: Appearance {
3942
switch self {
43+
case .`default`:
44+
return (true, .default)
4045
case .dark:
4146
if #available(iOS 13, *) {
4247
return (true, .darkContent)
@@ -62,8 +67,10 @@ public extension EKAttributes {
6267
switch appearance.style {
6368
case .lightContent:
6469
return .light
65-
default:
70+
case .darkContent:
6671
return .dark
72+
default:
73+
return .`default`
6774
}
6875
}
6976

0 commit comments

Comments
 (0)