NOT ALL CODE IS MIT-LICENSED! FULLY READ README
Ifrit
Super lightweight lib for fuzzy searching.
Works on iOS / macOS / Linux / Android and more:

This repository is built upon the archived Fuse-Swift project by KRisk: https://github.com/krisk/fuse-swift
https://github.com/ukushu/Ifrit.git
git@github.com:ukushu/Ifrit.git¿Qué es la búsqueda difusa?
Un algoritmo de búsqueda difusa está diseñado para encontrar coincidencias aproximadas para una consulta de búsqueda dada.
Supongamos que tienes una lista de productos y un usuario está buscando un "Czy Swetr,". La coincidencia exacta no devolverá nada, pero la búsqueda difusa encontrará "Cozy Sweater.".
Si necesitas una coincidencia exacta, debes usar la función estándar .filter { } en lugar de esta biblioteca.
Demostración de la búsqueda difusa:
[![Demostración de Ifrit][1]][1]
Ventajas / Desventajas de Ifrit
Advanteges:
+ Super lightweight
+ No dependencies
+ OS supported: MacOS(>=v10_15), iOS(>=v13), visionOS, watchOS, twOS, Linux
+ Async ( async/await + callbacks both )
+ Text highlight support (AttributedString)
+ Code covered with automated tests
+ Most of code licensed by "MIT License"
+ Can be linked as both Static and Dynamic package — choose what works best for youDisadvantages:
- Not tested in production
- FuzzyFind licensed by "Apache License, Version 2.0"
Diferencia: ¿Ifrit VS Fuze-Swift?
- Fuze-Swift: Swift 5.1~
+ Ifrit: Swift 6.2 compatible+ Fuze-Swift support Pods and Packages :)
- Ifrit supports only Packages :(
- Fuze-Swift is dead :(
+ 🔥🔥🔥 Ifrit is Fuse-Swift, reborn from the hells ashes! But more powerful and alive than ever! 🔥🔥🔥 :)- Fuse-Swift supports asynchronous functions with callbacks but lacks native async/await support. :(
+ Ifrit supports callbacks and async/await both :)- Fuze-Swift have async/multithreading issues. Crashes is possible :(
+ Ifrit is stable and crash-free!- Fuse-Swift's async functions return incorrect results - wrong indexes. :((((
+ Ifrit's async functions return correct indexes and are fully covered with tests :)- Fuze-Swift was written for Xcode 11 and now generates numerous warnings :(
+ Ifrit's code is updated to the latest Swift standards of 2026 year :)
- But Ifrit still have a few build warnings :(
+ Ifrit - extended coverage with automated tests :)
+ Ifrit features an additional search system using the Levenshtein distance algorithm. :)
+ Ifrit allows searching by multiple search templates
+ Ifrit's syntax has been slightly adjusted for improved flexibility
+ Ifrit's sync search is 2% faster than Fuse's (using M1 processor and standard settings).
+ Async search performance remains the same as Fuse's (standard settings).+ Ifrit was ported to Kotlin programming language: https://github.com/dfabulich/skip-ifrit
Instalación
- XCode -> Menú Línea -> Agregar Dependencias de Paquete ->
https://github.com/ukushu/Ifrit.git import Ifriten tus archivos fuente.
Documentación / Instrucciones / Proyecto de Ejemplo
El repositorio de Ifrit no tiene proyecto de ejemplo. Usa las instrucciones a continuación:
Cómo usar el Levenstain de Ifrit
Cómo mostrar resultados de búsqueda en la interfaz
Contribuciones
Ifrit acepta contribuciones en forma de issues y pull-requests en GitHub.
[1]: https://i.sstatic.net/8MwFeAHT.gif
--- Tranlated By Open Ai Tx | Last indexed: 2026-04-26 ---