Skip to content
Inline Loader preview
Rendered from the SwiftUI source on this page.

Inline Loader

From syxUI — written for both platforms, not translated between them.

An inline spinner with a label.

Loaders · SwiftUI · iOS 17

  • loaders
  • swiftui

The actual source

InlineLoader.swift
// Inline Loader · syxUI · https://syxui.dev/components/loader-inline
// Free in any project. Keep this line and credit syxUI where a person can read it.

import SwiftUI

struct InlineLoader: View { var body: some View { HStack(spacing: 10) { Circle().trim(from: 0, to: 0.7).stroke(.secondary, style: StrokeStyle(lineWidth: 2.5, lineCap: .round)).frame(width: 18, height: 18); Text("Loading…").font(.system(size: 15)).foregroundStyle(.secondary) } } }
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17