SelfieCam/SelfieCam/Features/Camera/Components/ShareButton.swift
Matt Bruce 84b565cbb5 Reorganize folder structure with consistent Views/ViewModels/Components pattern
Camera:
- Views/: ContentView, CustomCameraScreen, PhotoReviewView
- Components/: All UI components (buttons, overlays, controls)

Settings:
- Views/: SettingsView, AppLicensesView
- ViewModels/: SettingsViewModel + extensions
- Components/: ColorPresetButton, CustomColorPickerButton

Paywall:
- Views/: ProPaywallView

Shared:
- Theme/: SelfieCamTheme, DesignConstants, BrandingConfig
- Extensions/: Color extensions (moved Color+Extensions here)
2026-01-04 18:39:59 -06:00

32 lines
736 B
Swift

//
// ShareButton.swift
// SelfieCam
//
// Created by Matt Bruce on 1/4/26.
//
import SwiftUI
import Bedrock
// MARK: - Share Button
struct ShareButton: View {
let photo: UIImage
@State private var isShareSheetPresented = false
var body: some View {
Button {
isShareSheetPresented = true
} label: {
Image(systemName: "square.and.arrow.up")
.font(.system(size: 20, weight: .medium))
.foregroundStyle(.white)
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
.accessibilityLabel("Share photo")
.sheet(isPresented: $isShareSheetPresented) {
ShareSheet(activityItems: [photo])
}
}
}