RTSDA-iOS/Views/Detail/EventDetailViewWrapper.swift
RTSDA 00679f927c docs: Update README for v2.0 release and fix git remote URL
- Comprehensive README update documenting v2.0 architectural changes
- Updated git remote to ssh://rockvilleav@git.rockvilletollandsda.church:10443/RTSDA/RTSDA-iOS.git
- Documented unified ChurchService and 60% code reduction
- Added new features: Home Feed, responsive reading, enhanced UI
- Corrected license information (GPL v3 with church content copyright)
- Updated build instructions and technical stack details
2025-08-16 18:41:51 -04:00

20 lines
656 B
Swift

import SwiftUI
/// Smart wrapper that automatically selects the appropriate EventDetailView based on device
struct EventDetailViewWrapper: View {
let event: ChurchEvent
@Environment(\.horizontalSizeClass) private var horizontalSizeClass
var body: some View {
if horizontalSizeClass == .regular {
// iPad: Use space-optimized layout
iPadEventDetailView(event: event)
} else {
// iPhone: Use single-column layout
EventDetailView(event: event)
}
}
}
// MARK: - Convenience typealias for backward compatibility
typealias EventDetailView_Old = EventDetailViewWrapper