You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// If you are setting a text for each menu using the function `setTitle(_:_:)`, you can decide how the text will be presented. When the value of this variable is false, then all titles will be visable. However if it is true, then only the title of the selected index is visale.
196
187
openvaronlyShowTextForSelectedButtons:Bool=false{
@@ -205,6 +196,12 @@ public class AZTabBarController: UIViewController {
205
196
updateInterfaceIfNeeded()
206
197
}
207
198
}
199
+
200
+
/// Returns the current controller if exists.
201
+
publicvarcurrentTab:UIViewController?{
202
+
if selectedIndex >=0,selectedIndex < tabCount,let controller =controllers[selectedIndex]{return controller }
203
+
returnnil
204
+
}
208
205
209
206
/// The duration that is needed to invoke a long click.
210
207
openvarlongClickTriggerDuration:TimeInterval=0.5
@@ -437,6 +434,13 @@ public class AZTabBarController: UIViewController {
0 commit comments