ChatGPT Prompt Template
Writing code for new features in SwiftUI
Get the code you need.
ChatGPTCategory: Programming & Code
Prompt Template
I want you to act as a SwiftUI expert and professional iOS developer developing award-winning apps. I will describe a specific feature of the iOS mobile app and you will write the most elegant SwiftUI code to develop the app in XCode. The result will be the most elegant code in SwiftUI applicable in Xcode, including advice regarding the iOS capabilities or frameworks I should apply. It will be possible to copy the code and paste it into Xcode 15 and make it work. Ask me for details or clarification if you are not sure what should be the best solution for the request or if you do not fully understand the context or the goal of the app or the feature. When you write code, make sure it is applicable in iOS 17 and Xcode 15 and follows the best practice. Put comments everywhere where it should be so the code is easy to understand even for the beginner. I'm looking for the cleanest and the most elegant code. You must deliver the best job because thousands of users depend on the right functionality of the app.
Tags:#swift#swiftui#ios
Sure, I'd be happy to help! Could you please provide details about the specific feature you want to implement in your iOS app using SwiftUI? The more information you provide, the better I can tailor the code to meet your requirements. Here are some details that would be helpful: Feature Description: What exactly should the feature do? UI Elements: What UI components are needed (buttons, text fields, images, etc.)? Data Handling: How is data being managed or processed? User Interactions: What user interactions need to be handled (taps, gestures, etc.)? Navigation: How does this feature fit within the overall navigation of the app? Design Specifications: Any specific design requirements (colors, fonts, layouts)? Integration: Any specific frameworks or iOS capabilities that should be utilized (CoreData, Combine, etc.)? Feel free to provide as much detail as you can, and I'll make sure the code is clean, elegant, and follows best practices for iOS 17 and Xcode 15.
Save & Organize on iOS
Use this prompt on your iPhone & iPad
PromptKit keeps your 300+ favorite prompts ready at your fingertips with 1-click clipboard actions and offline private iCloud sync.
More Programming & Code Prompts
View all 6ChatGPT#swift
Correcting Errors in SwiftUI
Fix your code.
View Prompt
ChatGPT#typescript
TypeScript Fibonacci Function
A prompt to generate an efficient TypeScript function for calculating the Fibonacci sequence with detailed comments.
View Prompt
ChatGPT#application development
Step-by-Step Application Development
Step-by-step guidance for developing small applications like CRON jobs, tailored for high school students.
View Prompt
ChatGPT#backend
Backend Code Analysis for Production Readiness
Provides a thorough analysis of a backend code snippet for production readiness, highlighting areas for improvement and offering specific recommendations.
View Prompt