Instagram_Stories icon indicating copy to clipboard operation
Instagram_Stories copied to clipboard

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

Open halainn opened this issue 3 years ago • 6 comments

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

halainn avatar Jan 13 '23 05:01 halainn

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

ranmyfriend avatar Jan 13 '23 06:01 ranmyfriend

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

halainn avatar Jan 13 '23 08:01 halainn

Check whether you given delegate or not?

ranmyfriend avatar Jan 13 '23 09:01 ranmyfriend

Yes i given delegate

extension ViewController: StoryPreviewProtocol {
}

this is correct or i missed something, please guide me

halainn avatar Jan 13 '23 09:01 halainn

Hello @ranmyfriend any update?

halainn avatar Feb 04 '23 08:02 halainn

@halainn Did you confirmed cell.delegate = self ?

Note: Cell is IGStoryPreviewCell

boominadhaprakash avatar Feb 07 '23 13:02 boominadhaprakash