← All projects

DMUnLoader Swift SDK

Type
Open-source Swift SDK
Period
02/2024 – present
public since 12/2025
Platforms
iOS 17+
UI
SwiftUI, UIKit
Install
Swift Package Manager, CocoaPods
License
MIT
Source
GitHub
DMUnLoader: error, progress, and success dialog views

Overview

The DMUnLoader SDK simplifies the integration of common dialog states (Error, Loading, Success) in iOS applications. Only one state can be displayed at a time, ensuring a sequential and consistent behavior. Built with SwiftUI, it supports both UIKit and SwiftUI environments.

Key features

  • Separate system window: Dialogs are displayed in a dedicated system window, so they overlay the entire app interface without leaving interactive elements (for example, tab bars) active. Inspired by fivestars.blog: SwiftUI HUD and SwiftUI Windows.
  • Customizable views: Replace the default views (DMErrorView, DMProgressView, DMSuccessView) with custom implementations through the DMLoadingViewProvider protocol, following the dependency inversion principle.
  • Settings configuration: Fine-tune the appearance of the built-in views with settings for text properties, colors, and layout.
  • Retry and fallback logic: Action handling is built on DMAction, which adds retry and fallback mechanisms.
  • Dynamic blur effects: Integrates with the DMVariableBlurView library.

Installation

Swift Package Manager:

dependencies: [
    .package(url: "https://github.com/nikolay-dementiev/DMUnLoader.git", from: "1.0.3")
]

CocoaPods:

pod 'DMUnLoader', '~> 1.0.3'

Links