TabView: Better animations for closing tabs in the middle
This commit is contained in:
@@ -156,7 +156,11 @@ class TabBarView: UIView
|
||||
} else {
|
||||
let newTabView = makeTabView(withIdentifier: identifier)
|
||||
if animated { newTabView.collapsed = true }
|
||||
tabViews.append(newTabView)
|
||||
if i < tabViews.count {
|
||||
tabViews.insert(newTabView, at: i - 1)
|
||||
} else {
|
||||
tabViews.append(newTabView)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user