SearchConfig

public struct SearchConfig

Search configuration value type

  • all

    allow all search results

    Declaration

    Swift

    static let all          = SearchConfig()
  • allow matched region results only

    Declaration

    Swift

    static let matches      = SearchConfig(fragment: .match)
  • allow match and sub-match results only

    Declaration

    Swift

    static let deepMatches  = SearchConfig(fragment: .allMatch)
  • allow only one match result

    Declaration

    Swift

    static let firstMatch   = SearchConfig(fragment: .allMatch, maxMatches: 1)
  • allow only unmatched region results

    Declaration

    Swift

    static let text         = SearchConfig(fragment: .text)
  • allow only matched and unmatched (but not sub-match) results

    Declaration

    Swift

    static let shallow      = SearchConfig(fragment: [.match, .text])