Skip to content

Commit

Permalink
fix: Catch up to the latest SelectableCollectionView
Browse files Browse the repository at this point in the history
This adopts the new `SelectableCollectionView` which now has `MenuItem` and `MenuItemBuilder`.
  • Loading branch information
jbmorley committed Sep 18, 2024
1 parent 5a5e195 commit 7fd2544
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
9 changes: 9 additions & 0 deletions Bookmarks.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
"object": {
"pins": [
{
"package": "Cassowary",
"repositoryURL": "https://github.com/tribalworldwidelondon/CassowarySwift.git",
"state": {
"branch": null,
"revision": "7de8fee8331ad13eabb8de639fab0fde7a8f0d77",
"version": "2.0.1"
}
},
{
"package": "HashRainbow",
"repositoryURL": "https://github.com/saramah/HashRainbow.git",
Expand Down
2 changes: 1 addition & 1 deletion SelectableCollectionView
4 changes: 1 addition & 3 deletions core/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ let package = Package(
"WrappingHStack",
"HashRainbow",
"SwiftSoup",
.product(name: "SelectableCollectionView",
package: "SelectableCollectionView",
condition: .when(platforms: [.macOS])),
.product(name: "SelectableCollectionView", package: "SelectableCollectionView"),
],
resources: [
.process("Licenses"),
Expand Down
2 changes: 2 additions & 0 deletions core/Sources/BookmarksCore/Extensions/MenuItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import SwiftUI

import Interact

import SelectableCollectionView

extension MenuItem {

init(_ title: String, systemImage: String? = nil, role: ButtonRole? = nil, action: @escaping () async -> Void) {
Expand Down
2 changes: 2 additions & 0 deletions core/Sources/BookmarksCore/Model/SectionViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import SwiftUI

import Interact

import SelectableCollectionView

public class SectionViewModel: ObservableObject, Runnable {

public enum State {
Expand Down

0 comments on commit 7fd2544

Please sign in to comment.