Open iSevenDays opened 8 years ago
For example we have ImageGalleryStory as a name of our module.
Then
ImageGalleryStoryViewController.swift
class ImageGalleryStoryViewController : UIViewController, ImageGalleryStoryViewInput var output: ImageGalleryStoryViewOutput!
must be
@objc var output: ImageGalleryStoryViewOutput!
and
protocol ImageGalleryStoryViewOutput
@objc protocol ImageGalleryStoryViewOutput
Or else -moduleInput is not callable from objective c.
Hi, @iSevenDays. We'll add this information to one of our planned swift articles!
Thanks!
For example we have ImageGalleryStory as a name of our module.
Then
ImageGalleryStoryViewController.swift
must be
@objc var output: ImageGalleryStoryViewOutput!
and
protocol ImageGalleryStoryViewOutput
must be
@objc protocol ImageGalleryStoryViewOutput
Or else -moduleInput is not callable from objective c.