media Components
Media & Input Components
Components for handling media and file inputs, including file upload, image picker, and map views. Build rich, interactive experiences with photos, videos, documents, and location data.
4 components available
F
DSFileUpload
Drag-and-drop / tap-to-browse file input with allowed type filtering, size limit, and progress overlay.
v2.0·iOS 17+
I
DSImagePicker
Photo library and camera source picker that returns a UIImage/SwiftUI Image. Shows a preview thumbnail after selection.
v2.0·iOS 17+
M
DSMapView
MapKit wrapper with a pin annotation, user location dot, and a rounded-corner container style matching the DS.
v2.0·iOS 17+
I
DSImageGallery
NewHorizontal scrolling image gallery with page indicators.
1.2.0·iOS
Quick Import Reference
swift
// Package.swift
.package(url: "https://github.com/luizmellodev/SwiftDS-package", from: "2.0.0")
// In any SwiftUI file
import SwiftDS
struct MyView: View {
var body: some View {
VStack(spacing: DSSpacing.md) {
// Use any media component here
}
}
}