-
-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
78 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// IceBarLocation.swift | ||
// Ice | ||
// | ||
|
||
import SwiftUI | ||
|
||
/// Locations where the Ice Bar can appear. | ||
enum IceBarLocation: Int, CaseIterable, Identifiable { | ||
/// The Ice Bar will appear in different locations based on context. | ||
case `default` = 0 | ||
|
||
/// The Ice Bar will appear centered below the mouse pointer. | ||
case mousePointer = 1 | ||
|
||
/// The Ice Bar will appear centered below the Ice icon. | ||
case iceIcon = 2 | ||
|
||
var id: Int { rawValue } | ||
|
||
/// Localized string key representation. | ||
var localized: LocalizedStringKey { | ||
switch self { | ||
case .default: "Default" | ||
case .mousePointer: "Mouse pointer" | ||
case .iceIcon: "Ice icon" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters