Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

didCompletePreview method not being called in my controller, as i want to make the seen request to server #142

Open
halainn opened this issue Jan 13, 2023 · 6 comments
Assignees

Comments

@halainn
Copy link

halainn commented Jan 13, 2023

I know that if we need to Move seen stories status back to server in order to get the updated stories from the server we need to call API in didCompleteProgress method in the IGStoryPreviewCell. but when i seen the snap this method is not being called in my controller so how can i do this please explain.

extension ViewController: StoryPreviewProtocol {
    
   func moveToPreviousStory() {
        print("Goes to previous story")
    }
    
    func didTapCloseButton() {
        print("Goes Cancel")
    }
    
    func didCompletePreview()
    {
        print("Goes here")

        self.CallViewStoryService()
    }
}

delegate not being called in my view controller

Thanks

@ranmyfriend
Copy link
Member

Hi @halainn Please enable breakpoints on this project and try to get answer for your questions.

@halainn
Copy link
Author

halainn commented Jan 13, 2023

Hello @ranmyfriend I did it but it called in IGStoryPreviewCell file, not in my controller.

@ranmyfriend
Copy link
Member

Check whether you given delegate or not?

@halainn
Copy link
Author

halainn commented Jan 13, 2023

Yes i given delegate

extension ViewController: StoryPreviewProtocol {
}

this is correct or i missed something, please guide me

@halainn
Copy link
Author

halainn commented Feb 4, 2023

Hello @ranmyfriend any update?

@boominadhaprakash
Copy link
Member

boominadhaprakash commented Feb 7, 2023

@halainn Did you confirmed cell.delegate = self ?

Note: Cell is IGStoryPreviewCell

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

No branches or pull requests

3 participants