-
Notifications
You must be signed in to change notification settings - Fork 1
Update filtering keys and support location based filtering #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| extension CLLocationCoordinate2D: @retroactive Equatable { | ||
| public static func == (lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool { | ||
| let epsilon = 1e-7 // ~1cm precision | ||
| return abs(lhs.latitude - rhs.latitude) < epsilon && | ||
| abs(lhs.longitude - rhs.longitude) < epsilon | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Models are Equatable, so CLLocationCoordinate2D needs Equatable support
| branch = "add-filter-near-and-within-bounds"; | ||
| kind = branch; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create StreamCore release before merging
Public Interface+ extension CLLocationCoordinate2D: @retroactive Equatable
+
+ public static func ==(lhs: CLLocationCoordinate2D,rhs: CLLocationCoordinate2D)-> Bool
+ extension BookmarkFoldersSortField
+
+ public static let createdAt
+ public static let updatedAt
+ extension ActivitiesSortField
+
+ public static let createdAt
+ public static let popularity
+ extension ModerationConfigsSortField
+
+ public static let key
+ public static let createdAt
+ public static let team
+ public static let updatedAt
+ extension FollowsSortField
+
+ public static let createdAt
+ extension PollsSortField
+
+ public static let createdAt
+ public static let updatedAt
+ public static let name
+ public static let id
+ public static let isClosed
+ extension BookmarksSortField
+
+ public static let createdAt
+ public static let updatedAt
+ extension ActivityReactionsSortField
+
+ public static let createdAt
+ extension PollVotesSortField
+
+ public static let answerText
+ public static let id
+ public static let createdAt
+ public static let updatedAt
+ extension FeedsSortField
+
+ public static let createdAt
+ public static let followerCount
+ public static let followingCount
+ public static let memberCount
+ public static let updatedAt
+ extension MembersSortField
+
+ public static let createdAt
+ public static let updatedAt
+ public static let userId
+ extension CommentReactionsSortField
+
+ public static let createdAt
public struct FollowsSortField: SortField
- public static let createdAt
+
-
+
-
+ public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
- public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
public struct PollVotesSortField: SortField
- public static let answerText
+
- public static let id
+
- public static let createdAt
+ public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
- public static let updatedAt
-
-
- public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
public struct FeedsSortField: SortField
- public static let createdAt
+
- public static let followerCount
+
- public static let followingCount
+ public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
- public static let memberCount
- public static let updatedAt
-
-
- public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
public struct CommentReactionsSortField: SortField
- public static let createdAt
+
-
+
-
+ public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
- public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
public struct ActivitiesSortField: SortField
- public static let createdAt
+
- public static let popularity
+
-
+ public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
-
- public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
public struct ActivityReactionsSortField: SortField
- public static let createdAt
+
-
+
-
+ public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
- public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
public struct MembersSortField: SortField
- public static let createdAt
+
- public static let updatedAt
+
- public static let userId
+ public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
-
-
- public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
public struct BookmarkFoldersSortField: SortField
- public static let createdAt
+
- public static let updatedAt
+
-
+ public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
-
- public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
public struct ModerationConfigsSortField: SortField
- public static let key
+
- public static let createdAt
+
- public static let updatedAt
+ public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
-
-
- public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
extension ActivitiesFilterField
- public static let createdAt
+ public static let activityType
- public static let expiresAt
+ public static let createdAt
- public static let id
+ public static let expiresAt
- public static let filterTags
+ public static let feed
- public static let popularity
+ public static let filterTags
- public static let searchData
+ public static let id
- public static let text
+ public static let interestTags
- public static let type
+ public static let near
- public static let userId
+ public static let popularity
+ public static let searchData
+ public static let text
+ public static let userId
+ public static let withinBounds
public struct PollsSortField: SortField
- public static let createdAt
+
- public static let updatedAt
+
- public static let voteCount
+ public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
- public static let name
- public static let id
- public static let isClosed
-
-
- public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
extension BookmarkFoldersFilterField
- public static let folderId
+ public static let folderName
- public static let folderName
+ public static let createdAt
- public static let createdAt
+ public static let updatedAt
- public static let updatedAt
+ public static let userId
- public static let userId
public struct ActivityData: Identifiable, Equatable, Sendable
- public let location: ActivityLocation?
+ public let location: CLLocationCoordinate2D?
public struct BookmarksSortField: SortField
- public static let createdAt
+
- public static let updatedAt
+
-
+ public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value)
-
- public init(_ rawValue: String,localValue: @escaping @Sendable (Model) -> Value) |
SDK Size
|
|
StreamFeeds XCSize
Show 13 more objects
|


🔗 Issue Links
Fixes: IOS-1237
🎯 Goal
Sync filter keys to match backend updates
📝 Summary
🛠 Implementation
🎨 Showcase
🧪 Manual Testing Notes
☑️ Contributor Checklist
docs-contentrepo