Skip to content
Pull to Refresh preview
Rendered from the SwiftUI source on this page.

Pull to Refresh

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

A pull-to-refresh spinner.

Loaders · SwiftUI · iOS 17

  • loaders
  • swiftui

The actual source

PullRefreshLoader.swift
// Pull to Refresh · syxUI · https://syxui.dev/components/loader-pull
// Free in any project. Keep this line and credit syxUI where a person can read it.

import SwiftUI

struct PullRefreshLoader: View { var body: some View { VStack(spacing: 8) { Circle().trim(from: 0, to: 0.7).stroke(.secondary, style: StrokeStyle(lineWidth: 2.5, lineCap: .round)).frame(width: 26, height: 26); Text("Release to refresh").font(.system(size: 13)).foregroundStyle(.secondary) } } }
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17