yattee/Shared/Favorites/DropFavoriteOutside.swift

12 lines
217 B
Swift
Raw Normal View History

2021-11-01 21:56:18 +00:00
import Foundation
import SwiftUI
struct DropFavoriteOutside: DropDelegate {
@Binding var current: FavoriteItem?
func performDrop(info _: DropInfo) -> Bool {
current = nil
return true
}
}