Skip to content

Commit

Permalink
Fix search (Closes #138)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmuslos committed Sep 17, 2024
1 parent a1a1af5 commit 5585b84
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Multiplatform/Account/TintPicker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct TintPicker: View {
}

extension TintPicker {
enum TintColor: CaseIterable, Codable, _DefaultsSerializable {
enum TintColor: CaseIterable, Codable, Defaults.Serializable {
case shelfPlayer

case yellow
Expand Down
4 changes: 2 additions & 2 deletions Multiplatform/Navigation/Sidebar/Sidebar+Links.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import SwiftUI
import SPBase

extension Sidebar {
struct Selection: Codable, Hashable, _DefaultsSerializable {
struct Selection: Codable, Hashable, Defaults.Serializable {
let libraryId: String
let panel: Panel
}

enum Panel: Codable, Hashable, _DefaultsSerializable {
enum Panel: Codable, Hashable, Defaults.Serializable {
case audiobookListenNow
case series
case authors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"location" : "https://github.com/sindresorhus/Defaults",
"state" : {
"branch" : "main",
"revision" : "38925e3cfacf3fb89a81a35b1cd44fd5a5b7e0fa"
"revision" : "4c009d5c2496e7aa126e922c94dd3d6ae049efa2"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ extension AudiobookshelfClient {
let authors: [AudiobookshelfItem]?

struct SearchLibraryItem: Codable {
let matchKey: String
let matchText: String
let libraryItem: AudiobookshelfItem
}
struct SearchSeries: Codable {
Expand Down
2 changes: 1 addition & 1 deletion ShelfPlayerKit/Sources/SPOffline/Defaults+Keys.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Defaults

public extension Defaults.Keys {
static let hideFromContinueListening = Key<[HideFromContinueListeningEntity]>("hideFromContinueListening", default: [])
struct HideFromContinueListeningEntity: Codable, _DefaultsSerializable {
struct HideFromContinueListeningEntity: Codable, Defaults.Serializable {
public let itemId: String
public let episodeId: String?
}
Expand Down

0 comments on commit 5585b84

Please sign in to comment.