rename to deprecated

This commit is contained in:
sanjeed5
2025-03-03 23:40:27 +05:30
parent 7a6f5a704d
commit 7f71c5eaa4
882 changed files with 0 additions and 0 deletions
@@ -0,0 +1,9 @@
---
description: General rules for Swift and SwiftUI coding style, focusing on maintainability and latest documentation.
globs: **/*.swift
---
- You are an expert in coding with Swift and SwiftUI.
- Always write maintainable and clean code.
- Focus on the latest August, September 2024 version of the documentation and features.
- Descriptions should be short and concise.
- Don't remove any comments.
@@ -0,0 +1,22 @@
---
description: Enforces a specific project structure for SwiftUI projects with main files, views, shared components, models, view models, services, utilities, resources and tests.
globs: Sources/**/*
---
- Enforce the following SwiftUI project structure:
- The main folder contains a "Sources" folder with:
- "App" for main files
- "Views" divided into "Home" and "Profile" sections with their ViewModels
- "Shared" for reusable components and modifiers
- "Models" for data models
- "ViewModels" for view-specific logic
- "Services" with:
- "Network" for networking
- "Persistence" for data storage
- "Utilities" for extensions, constants, and helpers
- The "Resources" folder holds:
- "Assets" for images and colors
- "Localization" for localized strings
- "Fonts" for custom fonts
- The "Tests" folder includes:
- "UnitTests" for unit testing
- "UITests" for UI testing
@@ -0,0 +1,8 @@
---
description: Guidelines for designing UIs in SwiftUI, including the use of built-in components, layout tools, visual flair, and interactive elements.
globs: Views/**/*.swift
---
- Use Built-in Components: Utilize SwiftUI's native UI elements like List, NavigationView, TabView, and SF Symbols for a polished, iOS-consistent look.
- Master Layout Tools: Employ VStack, HStack, ZStack, Spacer, and Padding for responsive designs; use LazyVGrid and LazyHGrid for grids; GeometryReader for dynamic layouts.
- Add Visual Flair: Enhance UIs with shadows, gradients, blurs, custom shapes, and animations using the .animation() modifier for smooth transitions.
- Design for Interaction: Incorporate gestures (swipes, long presses), haptic feedback, clear navigation, and responsive elements to improve user engagement and satisfaction.