-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimizations for Search, also search for followed content
- Loading branch information
Showing
5 changed files
with
285 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// SearchResult.swift | ||
// Planet | ||
// | ||
// Created by Xin Liu on 2/22/24. | ||
// | ||
|
||
import Foundation | ||
|
||
enum PlanetKind: String { | ||
case my | ||
case following | ||
} | ||
|
||
struct SearchResult: Hashable { | ||
let articleID: UUID | ||
let articleCreated: Date | ||
let title: String | ||
let preview: String | ||
let planetID: UUID | ||
let planetName: String | ||
let planetKind: PlanetKind | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.