Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure Source folder #139

Open
ilia1103 opened this issue Nov 22, 2022 · 5 comments
Open

How to configure Source folder #139

ilia1103 opened this issue Nov 22, 2022 · 5 comments

Comments

@ilia1103
Copy link

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
Copy link
Member

@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
Copy link
Author

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
Copy link
Member

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

image

I am seeing the source code like IGLayoutType?

@ilia1103
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants