mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-24 03:25:03 +03:00
Fix tabs demo app
This commit is contained in:
parent
f9776d91d9
commit
beefb1a0be
@ -1 +1 @@
|
||||
Subproject commit a5cda7ab69b9b8e1b13b37d5f598f37babda6493
|
||||
Subproject commit 640c1d1b2c2eeb02cdbcc281c5c9d333680ec89d
|
@ -27,7 +27,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
tb.autoPinEdge(toSuperviewEdge: .left)
|
||||
tb.autoPinEdge(toSuperviewEdge: .right)
|
||||
tb.autoSetDimension(.height, toSize: Theme().tabBarHeight)
|
||||
tb.selectHandler = { [weak self] _, selectedEntry in
|
||||
tb.selectHandler = { [weak self] _, selectedEntry, entries in
|
||||
self?.tabEntries.enumerated().forEach { index, entry in
|
||||
self?.tabEntries[index].isSelected = (entry == selectedEntry)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user