보기

extension View
  • 참고

    SwiftUI/View/searchable(text:placement:prompt) 참조 https://developer.apple.com/documentation/swiftui/form/searchable(text:placement:prompt:)-6royb 검색 가능한 뷰 수정자에 대한 자세한 내용은 를 참조하세요.

    선언

    스위프트

    public func searchable<T: ObjectBase>(text: Binding<String>, collection: ObservedResults<T>, keyPath: KeyPath<T, String>,
                                          placement: SearchFieldPlacement = .automatic, prompt: Text? = nil) -> some View

    매개변수

    text

    검색 필드에 표시하고 편집할 텍스트입니다.

    collection

    필터링할 collection입니다.

    keyPath

    collection을 필터링하는 데 사용할 속성의 키 경로로, 유형이 String 인 키 경로만 허용됩니다.

    placement

    포함하는 뷰 계층 구조 내에서 검색 필드의 기본 배치입니다.

    prompt

    사용자에게 검색 대상에 대한 지침을 제공하는 검색 필드의 프롬프트를 나타내는 Text 입니다.

  • 참고

    SwiftUI/View/searchable(text:placement:prompt) 참조 https://developer.apple.com/documentation/swiftui/form/searchable(text:placement:prompt:)-2ed8t 검색 가능한 뷰 수정자에 대한 자세한 내용은 를 참조하세요.

    선언

    스위프트

    public func searchable<T: ObjectBase>(text: Binding<String>, collection: ObservedResults<T>,
                                          keyPath: KeyPath<T, String>, placement: SearchFieldPlacement = .automatic,
                                          prompt: LocalizedStringKey) -> some View

    매개변수

    text

    검색 필드에 표시하고 편집할 텍스트입니다.

    collection

    필터링할 collection입니다.

    keyPath

    필터링하는 데 사용할 속성의 키 경로입니다 collection.

    placement

    포함하는 뷰 계층 구조 내에서 검색 필드의 기본 배치입니다.

    prompt

    사용자에게 검색 대상에 대한 지침을 제공하는 검색 필드의 현지화된 프롬프트 키입니다.

  • 참고

    SwiftUI/View/searchable(text:placement:prompt) 참조: https://developer.apple.com/documentation/swiftui/form/searchable(text:placement:prompt:)-58egp 검색 가능한 뷰 수정자에 대한 자세한 내용은 를 참조하세요.

    선언

    스위프트

    public func searchable<T: ObjectBase, S>(text: Binding<String>, collection: ObservedResults<T>, keyPath: KeyPath<T, String>,
                                             placement: SearchFieldPlacement = .automatic, prompt: S) -> some View where S: StringProtocol

    매개변수

    text

    검색 필드에 표시하고 편집할 텍스트입니다.

    collection

    필터링할 collection입니다.

    keyPath

    필터링하는 데 사용할 속성의 키 경로입니다 collection.

    placement

    포함하는 뷰 계층 구조 내에서 검색 필드의 기본 배치입니다.

    prompt

    사용자에게 검색 대상에 대한 지침을 제공하는 검색 필드의 프롬프트를 나타내는 문자열입니다.

  • 참고

    SwiftUI/View/searchable(text:placement:prompt:suggestions) https://developer.apple.com/documentation/swiftui/form/searchable(text:placement:prompt:suggestions:)-94bdu 를 참조하세요. 검색 가능한 뷰 수정자에 대한 자세한 내용은 를 참조하세요.

    선언

    스위프트

    public func searchable<T: ObjectBase, S>(text: Binding<String>, collection: ObservedResults<T>, keyPath: KeyPath<T, String>,
                                             placement: SearchFieldPlacement = .automatic, prompt: Text? = nil, @ViewBuilder suggestions: () -> S)
            -> some View where S: View

    매개변수

    text

    검색 필드에 표시하고 편집할 텍스트입니다.

    collection

    필터링할 collection입니다.

    keyPath

    필터링하는 데 사용할 속성의 키 경로입니다 collection.

    placement

    포함하는 뷰 계층 구조 내에서 검색 필드의 기본 배치입니다.

    prompt

    사용자에게 검색 대상에 대한 지침을 제공하는 검색 필드의 프롬프트를 나타내는 Text 입니다.

    suggestions

    추천 목록을 채우는 콘텐츠를 생성하는 뷰 빌더입니다.

  • 참고

    SwiftUI/View/searchable(text:placement:prompt:suggestions) https://developer.apple.com/documentation/swiftui/form/searchable(text:placement:prompt:suggestions:)-1mw1m 검색 가능한 뷰 수정자에 대한 자세한 내용은 를 참조하세요.

    선언

    스위프트

    public func searchable<T: ObjectBase, S>(text: Binding<String>, collection: ObservedResults<T>, keyPath: KeyPath<T, String>,
                                             placement: SearchFieldPlacement = .automatic, prompt: LocalizedStringKey, @ViewBuilder suggestions: () -> S)
            -> some View where S: View

    매개변수

    text

    검색 필드에 표시하고 편집할 텍스트입니다.

    collection

    필터링할 collection입니다.

    keyPath

    필터링하는 데 사용할 속성의 키 경로입니다 collection.

    placement

    포함하는 뷰 계층 구조 내에서 검색 필드의 기본 배치입니다.

    prompt

    사용자에게 검색 대상에 대한 지침을 제공하는 검색 필드의 현지화된 프롬프트 키입니다.

    suggestions

    추천 목록을 채우는 콘텐츠를 생성하는 뷰 빌더입니다.

  • 참고

    SwiftUI/View/searchable(text:placement:prompt:suggestions) 참조 https://developer.apple.com/documentation/swiftui/form/searchable(text:placement:prompt:suggestions:)-6h6qo 검색 가능한 뷰 수정자에 대한 자세한 내용은 를 참조하세요.

    선언

    스위프트

    public func searchable<T: ObjectBase, V, S>(text: Binding<String>, collection: ObservedResults<T>, keyPath: KeyPath<T, String>,
                                                placement: SearchFieldPlacement = .automatic, prompt: S, @ViewBuilder suggestions: () -> V)
    -> some View where V: View, S: StringProtocol

    매개변수

    text

    검색 필드에 표시하고 편집할 텍스트입니다.

    collection

    필터링할 collection입니다.

    keyPath

    필터링하는 데 사용할 속성의 키 경로입니다 collection.

    placement

    포함하는 뷰 계층 구조 내에서 검색 필드의 기본 배치입니다.

    prompt

    사용자에게 검색 대상에 대한 지침을 제공하는 검색 필드의 프롬프트를 나타내는 문자열입니다.

    suggestions

    추천 목록을 채우는 콘텐츠를 생성하는 뷰 빌더입니다.

  • 참고

    SwiftUI/View/searchable(text:placement:prompt) 참조 https://developer.apple.com/documentation/swiftui/form/searchable(text:placement:prompt:)-6royb 검색 가능한 뷰 수정자에 대한 자세한 내용은 를 참조하세요.

    선언

    스위프트

    public func searchable<Key, T: ObjectBase>(text: Binding<String>, collection: ObservedSectionedResults<Key, T>, keyPath: KeyPath<T, String>,
                                               placement: SearchFieldPlacement = .automatic, prompt: Text? = nil) -> some View

    매개변수

    text

    검색 필드에 표시하고 편집할 텍스트입니다.

    collection

    필터링할 collection입니다.

    keyPath

    collection을 필터링하는 데 사용할 속성의 키 경로로, 유형이 String 인 키 경로만 허용됩니다.

    placement

    포함하는 뷰 계층 구조 내에서 검색 필드의 기본 배치입니다.

    prompt

    사용자에게 검색 대상에 대한 지침을 제공하는 검색 필드의 프롬프트를 나타내는 Text 입니다.

  • 참고

    SwiftUI/View/searchable(text:placement:prompt) 참조 https://developer.apple.com/documentation/swiftui/form/searchable(text:placement:prompt:)-2ed8t 검색 가능한 뷰 수정자에 대한 자세한 내용은 를 참조하세요.

    선언

    스위프트

    public func searchable<Key, T: ObjectBase>(text: Binding<String>, collection: ObservedSectionedResults<Key, T>,
                                               keyPath: KeyPath<T, String>, placement: SearchFieldPlacement = .automatic,
                                               prompt: LocalizedStringKey) -> some View

    매개변수

    text

    검색 필드에 표시하고 편집할 텍스트입니다.

    collection

    필터링할 collection입니다.

    keyPath

    필터링하는 데 사용할 속성의 키 경로입니다 collection.

    placement

    포함하는 뷰 계층 구조 내에서 검색 필드의 기본 배치입니다.

    prompt

    사용자에게 검색 대상에 대한 지침을 제공하는 검색 필드의 현지화된 프롬프트 키입니다.

  • 참고

    SwiftUI/View/searchable(text:placement:prompt) 참조: https://developer.apple.com/documentation/swiftui/form/searchable(text:placement:prompt:)-58egp 검색 가능한 뷰 수정자에 대한 자세한 내용은 를 참조하세요.

    선언

    스위프트

    public func searchable<Key, T: ObjectBase, S>(text: Binding<String>, collection: ObservedSectionedResults<Key, T>, keyPath: KeyPath<T, String>,
                                                  placement: SearchFieldPlacement = .automatic, prompt: S) -> some View where S: StringProtocol

    매개변수

    text

    검색 필드에 표시하고 편집할 텍스트입니다.

    collection

    필터링할 collection입니다.

    keyPath

    필터링하는 데 사용할 속성의 키 경로입니다 collection.

    placement

    포함하는 뷰 계층 구조 내에서 검색 필드의 기본 배치입니다.

    prompt

    사용자에게 검색 대상에 대한 지침을 제공하는 검색 필드의 프롬프트를 나타내는 문자열입니다.

  • 참고

    SwiftUI/View/searchable(text:placement:prompt:suggestions) https://developer.apple.com/documentation/swiftui/form/searchable(text:placement:prompt:suggestions:)-94bdu 를 참조하세요. 검색 가능한 뷰 수정자에 대한 자세한 내용은 를 참조하세요.

    선언

    스위프트

    public func searchable<Key, T: ObjectBase, S>(text: Binding<String>, collection: ObservedSectionedResults<Key, T>, keyPath: KeyPath<T, String>,
                                                  placement: SearchFieldPlacement = .automatic, prompt: Text? = nil, @ViewBuilder suggestions: () -> S)
    -> some View where S: View

    매개변수

    text

    검색 필드에 표시하고 편집할 텍스트입니다.

    collection

    필터링할 collection입니다.

    keyPath

    필터링하는 데 사용할 속성의 키 경로입니다 collection.

    placement

    포함하는 뷰 계층 구조 내에서 검색 필드의 기본 배치입니다.

    prompt

    사용자에게 검색 대상에 대한 지침을 제공하는 검색 필드의 프롬프트를 나타내는 Text 입니다.

    suggestions

    추천 목록을 채우는 콘텐츠를 생성하는 뷰 빌더입니다.

  • 참고

    SwiftUI/View/searchable(text:placement:prompt:suggestions) https://developer.apple.com/documentation/swiftui/form/searchable(text:placement:prompt:suggestions:)-1mw1m 검색 가능한 뷰 수정자에 대한 자세한 내용은 를 참조하세요.

    선언

    스위프트

    public func searchable<Key, T: ObjectBase, S>(text: Binding<String>, collection: ObservedSectionedResults<Key, T>, keyPath: KeyPath<T, String>,
                                                  placement: SearchFieldPlacement = .automatic, prompt: LocalizedStringKey, @ViewBuilder suggestions: () -> S)
    -> some View where S: View

    매개변수

    text

    검색 필드에 표시하고 편집할 텍스트입니다.

    collection

    필터링할 collection입니다.

    keyPath

    필터링하는 데 사용할 속성의 키 경로입니다 collection.

    placement

    포함하는 뷰 계층 구조 내에서 검색 필드의 기본 배치입니다.

    prompt

    사용자에게 검색 대상에 대한 지침을 제공하는 검색 필드의 현지화된 프롬프트 키입니다.

    suggestions

    추천 목록을 채우는 콘텐츠를 생성하는 뷰 빌더입니다.

  • 참고

    SwiftUI/View/searchable(text:placement:prompt:suggestions) 참조 https://developer.apple.com/documentation/swiftui/form/searchable(text:placement:prompt:suggestions:)-6h6qo 검색 가능한 뷰 수정자에 대한 자세한 내용은 를 참조하세요.

    선언

    스위프트

    public func searchable<Key, T: ObjectBase, V, S>(text: Binding<String>, collection: ObservedSectionedResults<Key, T>, keyPath: KeyPath<T, String>,
                                                     placement: SearchFieldPlacement = .automatic, prompt: S, @ViewBuilder suggestions: () -> V)
    -> some View where V: View, S: StringProtocol

    매개변수

    text

    검색 필드에 표시하고 편집할 텍스트입니다.

    collection

    필터링할 collection입니다.

    keyPath

    필터링하는 데 사용할 속성의 키 경로입니다 collection.

    placement

    포함하는 뷰 계층 구조 내에서 검색 필드의 기본 배치입니다.

    prompt

    사용자에게 검색 대상에 대한 지침을 제공하는 검색 필드의 프롬프트를 나타내는 문자열입니다.

    suggestions

    추천 목록을 채우는 콘텐츠를 생성하는 뷰 빌더입니다.