Skip to content

Commit

Permalink
Merge pull request #11 from FiveSheepCo/update-dependencies
Browse files Browse the repository at this point in the history
Update SchafKit
  • Loading branch information
JannThomas authored Sep 3, 2024
2 parents fd8b257 + fcea5a9 commit 85bde6e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/Quintschaf/SchafKit.git",
"state": {
"branch": null,
"revision": "66d05e846aff52ebc69723be14c8745680c763e7",
"version": "1.2.1"
"revision": "543b2d8dba7069c638e526d71b0701a730c09994",
"version": "1.3.0"
}
}
]
Expand Down
10 changes: 5 additions & 5 deletions Sources/MapItemPicker/Data/MapItem/MapItemImage.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import Foundation
import SwiftUI

struct MapItemImage: Identifiable, Equatable {

static func ==(lhs: MapItemImage, rhs: MapItemImage) -> Bool {
lhs.url == rhs.url
}
struct MapItemImage: Identifiable, Hashable {

enum Source: String {
case wikipedia
Expand All @@ -17,6 +13,10 @@ struct MapItemImage: Identifiable, Equatable {

var id: String { url.absoluteString }

func hash(into hasher: inout Hasher) {
hasher.combine(url)
}

let url: URL
let thumbnailUrl: URL
let description: String?
Expand Down
2 changes: 1 addition & 1 deletion Sources/MapItemPicker/UI/Sheets/SearchSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct SearchSheet<SearchView: View>: View {
if !searcher.filteredCategories.isEmpty {
ForEach(searcher.filteredCategories) { category in
Button {
searcher.filteredCategories.remove(object: category)
searcher.filteredCategories.remove(subject: category)
} label: {
Image(systemName: category.imageName)
Text("✓ " + category.name)
Expand Down

0 comments on commit 85bde6e

Please sign in to comment.