
- 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
20 lines
656 B
Swift
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 |