Skip to content

Commit 74f12f4

Browse files
committed
Expose properties and methods to Obj-C runtime
1 parent 22d90b7 commit 74f12f4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

EMPageViewController/EMPageViewController.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ open class EMPageViewController: UIViewController, UIScrollViewDelegate {
127127
/// If the data source is `nil`, gesture based scrolling will be disabled and all view controllers must be provided through `selectViewController:direction:animated:completion:`.
128128
///
129129
/// - important: If you are using a data source, make sure you set `dataSource` before calling `selectViewController:direction:animated:completion:`.
130-
open weak var dataSource: EMPageViewControllerDataSource?
130+
@objc open weak var dataSource: EMPageViewControllerDataSource?
131131

132132
/// The object that receives messages throughout the navigation process of the page view controller.
133-
open weak var delegate: EMPageViewControllerDelegate?
133+
@objc open weak var delegate: EMPageViewControllerDelegate?
134134

135135
/// The direction scrolling navigation occurs
136136
open private(set) var navigationOrientation: EMPageViewControllerNavigationOrientation = .horizontal
@@ -159,13 +159,13 @@ open class EMPageViewController: UIViewController, UIScrollViewDelegate {
159159
private var beforeViewController: UIViewController?
160160

161161
/// The currently selected view controller. Can be `nil` if no view controller is selected.
162-
open private(set) var selectedViewController: UIViewController?
162+
@objc open private(set) var selectedViewController: UIViewController?
163163

164164
/// The view controller after the selected view controller.
165165
private var afterViewController: UIViewController?
166166

167167
/// Boolean that indicates whether the page controller is currently in the process of scrolling.
168-
open private(set) var scrolling = false
168+
@objc open private(set) var scrolling = false
169169

170170
/// The direction the page controller is scrolling towards.
171171
open private(set) var navigationDirection: EMPageViewControllerNavigationDirection?
@@ -196,7 +196,7 @@ open class EMPageViewController: UIViewController, UIScrollViewDelegate {
196196
- parameter direction: The direction of the navigation and animation, if applicable.
197197
- parameter completion: A block that's called after the transition is finished. The block parameter `transitionSuccessful` is `true` if the transition to the selected view controller was completed successfully.
198198
*/
199-
open func selectViewController(_ viewController: UIViewController, direction: EMPageViewControllerNavigationDirection, animated: Bool, completion: ((_ transitionSuccessful: Bool) -> Void)?) {
199+
@objc open func selectViewController(_ viewController: UIViewController, direction: EMPageViewControllerNavigationDirection, animated: Bool, completion: ((_ transitionSuccessful: Bool) -> Void)?) {
200200

201201
if (direction == .forward) {
202202
self.afterViewController = viewController

0 commit comments

Comments
 (0)