Skip to content

Instantly share code, notes, and snippets.

//
// MenuCommandTestsApp.swift
// MenuCommandTests
//
// Created by Joseph Wardell on 8/16/23.
//
import SwiftUI
let SecondWindowIdentifier = "SecondWindowIdentifier"
@jaywardell
jaywardell / ContainerView.swift
Created October 24, 2019 16:23
Creating a View that contains another view builder in SwiftUI
import SwiftUI
struct ContainerView<Content: View>: View {
let content: Content
public init(@ViewBuilder builder: () -> Content) {
self.content = builder()
}