Back to Integrations

Vadyl + Swift

Swift is a powerful and intuitive programming language for iOS, iPadOS, macOS, tvOS, and watchOS.

dependencies: [.package(url: "https://github.com/vadyl/vadyl-swift", from: "1.0.0")]
Async/Await
Codable Support
Combine Publishers

Implementation Guide

1

SwiftUI

Bind data directly to your SwiftUI views.

struct ContentView: View {
    @State var todos: [Todo] = []

    var body: some View {
        List(todos) { todo in
            Text(todo.title)
        }.task {
            todos = try? await vadyl.database.from("todos").select().execute()
        }
    }
}

Ready to build with Swift?