diff --git a/CompositionKit-Demo/Book.HostingView.swift b/CompositionKit-Demo/Book.HostingView.swift index 6db20a0..dc4e4e4 100644 --- a/CompositionKit-Demo/Book.HostingView.swift +++ b/CompositionKit-Demo/Book.HostingView.swift @@ -8,89 +8,6 @@ import UIKit @MainActor extension Book { - static var hostingView: some BookView { - - BookNavigationLink(title: "HostingView") { - - BookPreview(expandsWidth: true, maxHeight: 300, minHeight: 300) { - - let view = HostingView { _ in - BookLozenge() - } - - view.backgroundColor = .yellow - - return CompositionKit.AnyView { _ in - - ZStackBlock { - - view - - } - } - - } - - BookPreview(expandsWidth: true, maxHeight: 300, minHeight: 300) { - - HostingView { _ in - Text("Hello, HostingView") - .padding() - } - - } - - BookPreview(expandsWidth: true, maxHeight: 300, minHeight: 300) { - - AnyView { _ in - HStackBlock(spacing: 2) { - HostingView { _ in - InteractiveView() - }&>.do { - $0.backgroundColor = .lightGray - } - HostingView { _ in - InteractiveView() - }&>.do { - $0.backgroundColor = .lightGray - } - HostingView { _ in - InteractiveView() - }&>.do { - $0.backgroundColor = .lightGray - } - } - } - - } - - BookPreview(expandsWidth: true, maxHeight: 300, minHeight: 300) { - - AnyView { _ in - VStackBlock(spacing: 2) { - HostingView { _ in - InteractiveView() - }&>.do { - $0.backgroundColor = .lightGray - } - HostingView { _ in - InteractiveView() - }&>.do { - $0.backgroundColor = .lightGray - } - HostingView { _ in - InteractiveView() - }&>.do { - $0.backgroundColor = .lightGray - } - } - } - - } - } - - } - struct BookLozenge: View { var body: some View { Text("こんにちは") diff --git a/CompositionKit-Demo/Book.swift b/CompositionKit-Demo/Book.swift index 9d67020..efdd9b5 100644 --- a/CompositionKit-Demo/Book.swift +++ b/CompositionKit-Demo/Book.swift @@ -7,7 +7,6 @@ let book = Book(title: "MyBook") { if #available(iOS 13, *) { Book_VGridView.body - Book.hostingView } Book.dynamicAnimator