HTTPToast is a lightweight and intuitive SwiftUI component that helps you debug your HTTP requests and responses. With HTTPToast, you can quickly and easily track the performance of your network requests and identify any potential issues.


  • Displays a pop-up toast with detailed information about your request and response, including the HTTP method, status code, and headers.
  • Customizable appearance and behavior, so you can make HTTPToast fit your needs.
  • Easy to integrate into your existing project and can be used as a custom view modifier.

Getting Started


HTTPToast is available through Swift Package Manager . To install it, simply add the following line to your Package.swift file:

dependencies: [
    .package(url: "", from: "0.1.0")

And then run swift package update.


To use HTTPToast, simply wrap your HTTPClient in a ToastHTTPClient and add the .modifier(httpClient) to your view. Here’s an example:

struct ContentView: View {
    @State private var httpClient = ToastHTTPClient(wrapped: DummyHTTPClient())
    var body: some View {
        VStack {
            // Your main content here
            Button(action: {
                self.httpClient.request(“”, method: .get, headers: nil, body: nil) { result in
                    // Do something with the result
            }) {
                Text(“Make Request”)


HTTPToast is an open-source project, and contributions are more than welcome. If you find a bug or have an idea for a new feature, feel free to open an issue or submit a pull request.


HTTPToast is released under the MIT License .


View Github