Merge branch 'feature/hero_improvement' into 'develop'
Hero Improvement. See merge request BPHV_MIPS/mvm_core_ui!201
This commit is contained in:
commit
ed25385d4b
@ -237,11 +237,13 @@ import UIKit
|
|||||||
|
|
||||||
var queue = [UIView]()
|
var queue = [UIView]()
|
||||||
|
|
||||||
for view in views {
|
// Reversed the array to first check views at the front.
|
||||||
|
for view in views.reversed() {
|
||||||
// Only one Label will have a hero in a table cell.
|
// Only one Label will have a hero in a table cell.
|
||||||
if let label = view as? Label, label.hero != nil {
|
if let label = view as? Label, label.hero != nil {
|
||||||
return label
|
return label
|
||||||
}
|
}
|
||||||
|
|
||||||
queue.append(contentsOf: view.subviews)
|
queue.append(contentsOf: view.subviews)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user