drawRect / Instagram_Stories

Inspired by Instagram Stories functionality. This source is similar to Instagram Stories, which is having both image and video support.
MIT License
414 stars 76 forks source link

How to configure Source folder #139

Open ilia1103 opened 1 year ago

ilia1103 commented 1 year ago

After drag n drop folder Source to target of my project i have errors: Cannot find type 'LayoutType' in scope How to put data in your Stories? Maybe u have some documentation or example?

Ty, i will be wait any you answers

boominadhaprakash commented 1 year ago

@ilia1103 May I know how you have downloaded source code? Currently we are reading stories from json file. That you can refer the Instagram Stories source code. You can change that implementation by loading the content from api response. It is better to have an api response similar to the model json file content.

ilia1103 commented 1 year ago

Hello. I downloaded the entire project, moved the Source folder to my project, added it to target. After that, when assembling, I get an error - Cannot find type 'layoutType' in scope in the IGStroryPreviewFile file

Снимок экрана 2022-11-24 в 08 10 47
boominadhaprakash commented 1 year ago

@ilia1103 But the source code is not looks like what you have shared now.

image

I am seeing the source code like IGLayoutType?

ilia1103 commented 1 year ago

I don't know how this could happen, I probably downloaded the wrong source code, now everything is compiled without errors, can you tell me exactly how to run your controller from the code? I created a collection, when I click I want to get into your controller with stories.

ilia1103 commented 1 year ago

I will create a new Controller in storyboard, I gave him the IGStoryPreviewController class, after starting the controller in this way, I get the error fatal error: initialization(coder:) was not implemented