import SwiftUI struct BookmarkListItemView: View { @EnvironmentObject var settings: Settings var bookmark: Bookmark var body: some View { VStack(alignment: .leading) { HStack { Text(bookmark.tags.joined(separator: ", ")) #if os(macOS) Spacer() Button { settings.removeBookmark(withID: bookmark.id) } label: { Image(systemName: "trash") } #endif } HStack { Text(bookmark.createdAt, style: .date) .font(.caption) .foregroundStyle(Color.secondary) Spacer() Text(bookmark.provider.formatted()) .font(.caption) .foregroundStyle(Color.secondary) } } #if os(macOS) .padding() #endif } }