/ Tool

Simple and fast fuzzy string matching in Swift

Simple and fast fuzzy string matching in Swift

fuzzy-swift

Simple and fast "fuzzy" string matching. Can be used to implement Sublime Text-like search.

fuzzy-swift

See Example Project

Usage

search(needle: "ab", haystack: "asdfbwe") # true
search(needle: "mtme", haystack: "matchme") # true
search(needle: "mtt", haystack: "matchme") # false

SwiftPM

To use Apple's Swift package manager, add this line to your Package.swift

.package(url: "https://github.com/khoi/fuzzy-swift", from: "0.1.0")

GitHub