[ADD] Search bar for BrowseView on iOS 15

This commit is contained in:
Fabian Thies
2022-12-12 19:18:57 +01:00
committed by Joe Mattiello
parent 0c034b61d9
commit 0e7083539d
5 changed files with 73 additions and 33 deletions

View File

@@ -0,0 +1,17 @@
//
// StoreApp+Searchable.swift
// SideStore
//
// Created by Fabian Thies on 01.12.22.
// Copyright © 2022 SideStore. All rights reserved.
//
import AltStoreCore
extension StoreApp: Filterable {
func matches(_ searchText: String) -> Bool {
searchText.isEmpty ||
self.name.lowercased().contains(searchText.lowercased()) ||
self.developerName.lowercased().contains(searchText.lowercased())
}
}