Skip to content

Commit

Permalink
Switch back to String
Browse files Browse the repository at this point in the history
  • Loading branch information
rtharston committed Jan 14, 2024
1 parent cd49359 commit 9e6300d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/KeyboardShortcuts/Recorder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ extension KeyboardShortcuts.Recorder<Text> {
- Parameter onChange: Callback which will be called when the keyboard shortcut is changed/removed by the user. This can be useful when you need more control. For example, when migrating from a different keyboard shortcut solution and you need to store the keyboard shortcut somewhere yourself instead of relying on the built-in storage. However, it's strongly recommended to just rely on the built-in storage when possible.
*/
@_disfavoredOverload
public init<S>(
_ title: S,
public init(
_ title: String,
name: KeyboardShortcuts.Name,
onChange: ((KeyboardShortcuts.Shortcut?) -> Void)? = nil
) where S : StringProtocol {
) {
self.init(
for: name,
onChange: onChange,
Expand Down

0 comments on commit 9e6300d

Please sign in to comment.