Do you ever run into pasting your entire Swift iOS code into ChatGPT only to have it say it's too long? Happens. Not always but sometimes. Here's a way to get around it by chunking up the code into Blocks and having it report back it's ready for the next block. Once it's all up, you should be a finished message and that you can ask your questions now.
Prompt:
I am going to upload 2 blocks of code. I will start with [Block 1] followed by [Block 2]. Once you have both blocks, you will respond with I have the code. Then I will ask questions based on that complete code. Are you ready for Block 1?
Responses:
Yes, I'm ready for Block 1. Please provide the code.
I'm ready for Block 2. Please provide the code.
I have the code. Please feel free to ask any questions based on the complete code.