// // CSSuggestion.h // CoreSpotlight // // Copyright © 2021 Apple. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN NS_SWIFT_NAME(suggestionHighlight) CORESPOTLIGHT_EXPORT NSAttributedStringKey const CSSuggestionHighlightAttributeName API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE; typedef NS_ENUM(NSInteger, CSSuggestionKind) { CSSuggestionKindNone, CSSuggestionKindCustom, CSSuggestionKindDefault, } NS_SWIFT_NAME(CSSuggestion.SuggestionKind); API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE @interface CSSuggestion : NSObject @property (nonnull, nonatomic, readonly) NSAttributedString *localizedAttributedSuggestion NS_REFINED_FOR_SWIFT; @property (nonatomic, readonly) CSSuggestionKind suggestionKind; // For suggestions that have been ranked by the query - (NSComparisonResult)compareByRank:(CSSuggestion *)other; - (NSComparisonResult)compare:(CSSuggestion *)other; @end NS_ASSUME_NONNULL_END