How charityhsu/yip works
Main Components
• Model:
• Manages encoding/decoding of data using the Codable protocol as well as data persistence.
• Core Data is used for persistence, indicated by the YearInPixels.xcdatamodeld directory.
• View:
• Contains all UI elements including storyboards (LaunchScreen.storyboard and Main.storyboard) located under the Base.lproj folder.
• Custom UI components like the CollectionViewCell, CustomLayout, and SectionHeaderView.
• Controller:
• Holds the glue between Model and View. Controllers include MonthViewController, ParentViewController, PopupVC, ReminderVC, and YearViewController.
• Handles user interactions, navigation, and updating the UI.
• Application Lifecycle & External Services:
• AppDelegate.swift and SceneDelegate.swift manage the overall application lifecycle.
• Integration points for local notifications and system alerts.
• Sound (button_tap.mp3) is used to provide user feedback.
• Xcode Project Files:
Out the Interactions
• Communication flow starting with the AppDelegate/SceneDelegate initializing the application.
• How the View layer (via storyboards and custom UI components) is connected to the Controller layer.
• How Controller objects (e.g., MonthViewController and YearViewController) interact with Models to load, persist, and modify data.
• Directional flows such as:
• User actions triggering Controller events.
• Controller updates altering Model state.
• Model changes prompting updates in the View.
• How the app manages local notifications (reminders) and plays audio feedback through the Audio component.
Architectural Patterns & Design Principles
• Clearly denote the Model-View-Controller separation, emphasizing how the responsibilities are divided.
• How UIKit components (like UICollectionView) enable complex layouts and interactions.
• Mention that no third-party libraries are used, which reinforces a pure UIKit and Swift-based approach.
Relevant Technologies, Frameworks, and Tools
• Swift 5 as the programming language and Xcode 11 as the development IDE.
• UIKit for the UI, Core Data for data persistence, and local notification frameworks.
• Auto Layout and Storyboard for building the interface.
• That the app leverages native iOS frameworks to manage data flows and UI rendering.