This is Swift Wrapper for compose-remote-layout without Kotlin setup.
Add ComposeRemoteLayoutSwift to your project using the Swift Package Manager:
- Open your Xcode project.
- Go to File > Swift Packages > Add Package Dependency…
- Enter the repository URL for ComposeRemoteLayoutSwift.
- Follow the prompts to complete the setup.
import ComposeRemoteLayoutSwift
import SwiftUI
struct ContentView: View {
    private let bindValue: BindsValue = BindsValue()
    @State private var jsonLayout: String = """
    {
      "column": {
        "children": [
          {
            "text": {
              "content": "Hello from Remote Layout"
            }
          }
        ]
      }
    }
    """
    
    var body: some View {
        DynamicLayoutView(
            jsonLayout: $jsonLayout,
            bindsValue: bindValue
        )
    }
}import ComposeRemoteLayoutSwift
import SwiftUI
@main
struct MyApp: App {
    // add delegate
    @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}
class AppDelegate: UIResponder, UIApplicationDelegate {
    func application(
        _: UIApplication,
        didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil
    ) -> Bool {
    
        // Register custom SwiftUI
        CustomNodes.register(type: "banner") { data in
            // getValue from
            let title = data["title"] ?? "Default Title"
            return Text(title)
        }
        
        return true
    }
}