SearchInAppsSDK Framework Reference

SearchSuggestionsView

@available(iOS, introduced: 14)
@MainActor
struct SearchSuggestionsView

A SwiftUI View to display search suggestions.

  • The type of view representing the body of this view.

    When you create a custom view, Swift infers this type from your implementation of the required View/body-swift.property property.

    Declaration

    Swift

    @available(iOS, introduced: 14)
    typealias Body = some View
  • The content and behavior of the view.

    When you implement a custom view, you must implement a computed body property to provide the content for your view. Return a view that’s composed of built-in views that SwiftUI provides, plus other composite views that you’ve already defined:

    struct MyView: View {
        var body: some View {
            Text("Hello, World!")
        }
    }
    

    For more information about composing views and a view hierarchy, see doc:Declaring-a-Custom-View.

    Declaration

    Swift

    @available(iOS, introduced: 14)
    @MainActor
    var body: some View { get }
  • Creates a SearchSuggestionsView.

    Declaration

    Swift

    @available(iOS, introduced: 14)
    @MainActor
    init(suggestions: SearchSuggestions?, options: SearchSuggestionsViewOptions = SearchSuggestionsViewOptions())