Structure

NSViewRepresentableContext

Contextual information about the state of the system that you use to create and update your AppKit view. システムの状態についての前後関係的情報、それはあなたが使用してあなたのAppKitビューを作成および更新するものです。

Declaration 宣言

struct NSViewRepresentableContext<View> where View : NSViewRepresentable

Overview 概要

An NSViewRepresentableContext structure contains details about the current state of the system. When creating and updating your view, the system creates one of these structures and passes it to the appropriate method of your custom NSViewRepresentable instance. Use the information in this structure to configure your view. For example, use the provided environment values to configure the appearance of your view. この構造体の中の情報を使って、あなたのビューを構成設定してください。例えば、提供された環境値を使って、あなたのビューの外観を構成設定してください。 Don’t create this structure yourself.

Topics 話題

Coordinating View-Related Interactions ビュー関連相互作用と協調する

Getting the Current Environment Data 現在の環境データを取得する

Relationships 関係

Conforms To 次に準拠

See Also 参照

AppKit Views in SwiftUI Apps