From 1126ffec86ce6295ca89fe3eefcf96845cb19abc Mon Sep 17 00:00:00 2001 From: priyauw <62533174+priyauw@users.noreply.github.com> Date: Tue, 16 Apr 2024 15:42:27 +0530 Subject: [PATCH] Update DropDown.swift Added the @objc to access the anchor view and data source into the objective-c project --- DropDown/src/DropDown.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DropDown/src/DropDown.swift b/DropDown/src/DropDown.swift index f41e8dd..d07a47a 100644 --- a/DropDown/src/DropDown.swift +++ b/DropDown/src/DropDown.swift @@ -104,7 +104,7 @@ public final class DropDown: UIView { /// The view to which the drop down will displayed onto. - public weak var anchorView: AnchorView? { + @objc public weak var anchorView: AnchorView? { didSet { setNeedsUpdateConstraints() } } @@ -381,7 +381,7 @@ public final class DropDown: UIView { Changing the data source automatically reloads the drop down. */ - public var dataSource = [String]() { + @objc public var dataSource = [String]() { didSet { deselectRows(at: selectedRowIndices) reloadAllComponents()