View in English

  • メニューを開く メニューを閉じる
  • Apple Developer
検索
検索を終了
  • Apple Developer
  • ニュース
  • 見つける
  • デザイン
  • 開発
  • 配信
  • サポート
  • アカウント
次の内容に検索結果を絞り込む

クイックリンク

5 クイックリンク

ビデオ

メニューを開く メニューを閉じる
  • コレクション
  • トピック
  • すべてのビデオ
  • 利用方法

その他のビデオ

ストリーミングはほとんどのブラウザと
Developerアプリで視聴できます。

  • 概要
  • コード
  • 3次元におけるSwiftUI

    visionOSアプリに深さと次元を足す準備をしましょう。ボリュームでアプリに3次元オブジェクトを持ち込む方法を発見し、Model 3D APIについて知り、コンテンツを配置し動的にする方法を学びます。またRealityViewでのUIアタッチメントの使用方法とコンテンツのジェスチャーのサポート方法をご紹介します。

    関連する章

    • 0:00 - Introduction
    • 1:49 - Volumes
    • 2:57 - 3D views and layout
    • 7:46 - RealityView
    • 10:55 - 3D gestures

    リソース

      • HDビデオ
      • SDビデオ

    関連ビデオ

    WWDC23

    • はじめてのイマーシブなアプリの開発
    • 空間コンピューティングのためのウインドウ表示型アプリの向上
    • RealityKitによる空間コンピューティンングアプリの拡張
    • RealityKitを使用した空間体験の構築
    • SwiftUIでウインドウを超える
  • ダウンロード
    Array
    • 3:35 - MoonView

      struct MoonView {
        var body: some View {
          Model3D(named: "Moon") { phase in
            switch phase {
            case .empty:
              ProgressView()
            case let .failure(error):
              Text(error.localizedDescription)
            case let .success(model):
              model
                .resizable()
                .scaledToFit()
            }
          }
        }
      }
    • 17:26 - Manipulation Gesture

      // Gesture combining dragging, magnification, and 3D rotation all at once.
      var manipulationGesture: some Gesture<AffineTransform3D> {
          DragGesture()
              .simultaneously(with: MagnifyGesture())
              .simultaneously(with: RotateGesture3D())
              .map { gesture in
                  let (translation, scale, rotation) = gesture.components()
      
                  return AffineTransform3D(
                      scale: scale,
                      rotation: rotation,
                      translation: translation
                  )
              }
      }
      
      // Helper for extracting translation, magnification, and rotation.
      extension SimultaneousGesture<
          SimultaneousGesture<DragGesture, MagnifyGesture>,
          RotateGesture3D>.Value {
          func components() -> (Vector3D, Size3D, Rotation3D) {
              let translation = self.first?.first?.translation3D ?? .zero
              let magnification = self.first?.second?.magnification ?? 1
              let size = Size3D(width: magnification, height: magnification, depth: magnification)
              let rotation = self.second?.rotation ?? .identity
              return (translation, size, rotation)
          }
      }
  • 特定のトピックをお探しの場合は、上にトピックを入力すると、関連するトピックにすばやく移動できます。

    クエリの送信中にエラーが発生しました。インターネット接続を確認して、もう一度お試しください。

Developer Footer

  • ビデオ
  • WWDC23
  • 3次元におけるSwiftUI
  • メニューを開く メニューを閉じる
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • SF Symbols
    メニューを開く メニューを閉じる
    • アクセシビリティ
    • アクセサリ
    • App Extension
    • App Store
    • オーディオとビデオ(英語)
    • 拡張現実
    • デザイン
    • 配信
    • 教育
    • フォント(英語)
    • ゲーム
    • ヘルスケアとフィットネス
    • アプリ内課金
    • ローカリゼーション
    • マップと位置情報
    • 機械学習
    • オープンソース(英語)
    • セキュリティ
    • SafariとWeb(英語)
    メニューを開く メニューを閉じる
    • 英語ドキュメント(完全版)
    • 日本語ドキュメント(一部トピック)
    • チュートリアル
    • ダウンロード(英語)
    • フォーラム(英語)
    • ビデオ
    Open Menu Close Menu
    • サポートドキュメント
    • お問い合わせ
    • バグ報告
    • システム状況(英語)
    メニューを開く メニューを閉じる
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles(英語)
    • フィードバックアシスタント
    メニューを開く メニューを閉じる
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program(英語)
    • News Partner Program(英語)
    • Video Partner Program(英語)
    • セキュリティ報奨金プログラム(英語)
    • Security Research Device Program(英語)
    Open Menu Close Menu
    • Appleに相談
    • Apple Developer Center
    • App Store Awards(英語)
    • Apple Design Awards
    • Apple Developer Academy(英語)
    • WWDC
    Apple Developerアプリを入手する
    Copyright © 2025 Apple Inc. All rights reserved.
    利用規約 プライバシーポリシー 契約とガイドライン