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

cannot find 'IGAppUtility' in scope #122

Closed fredsco closed 1 year ago

fredsco commented 3 years ago

Describe the bug When I add the "source" folder to my project and try to run I receive the following error: 'cannot find 'IGAppUtility' in scope'   in file: IGStoryPreviewController.swift (line: 117) this is also for 'IGStoryListCell' and  'IGAddStoryCell'

I have followed the step from the README.

Is it possible to give a quick demo on how I can successfully import the source code, and create in my own view controller a circle with a "story" to place wherever I want? 

Thank you in advance.

To Reproduce Steps to reproduce the behaviour:

  1. Clone project
  2. Drag source folder to own project 3.  make it as group and save it
  3. See error

Expected behaviour After importing the source folder any code in there should not give an error?

**Using the latest version of Xcode and iOS. 

fredsco commented 3 years ago

UPDATE: I see that I also needed to import the "Module' folder and IGapputility 👍

I'm still curious how i could init this in my viewcontroller

boominadhaprakash commented 3 years ago

Hi @fredsco

We missed out to check this. Please give me sometime. I will fix this issue and update you.