2019-12-19 17:32:49 +00:00
|
|
|
/*
|
2023-04-06 09:44:16 +00:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2019-12-19 17:32:49 +00:00
|
|
|
*
|
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2018-11-01 17:56:41 +00:00
|
|
|
*/
|
2016-11-16 16:01:27 +00:00
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
|
|
|
|
final class CarouselCell: UICollectionViewCell {
|
|
|
|
|
@IBOutlet weak var titleLabel: UILabel!
|
2017-05-16 14:30:08 +00:00
|
|
|
|
2016-11-16 16:01:27 +00:00
|
|
|
override func didUpdateFocus(in context: UIFocusUpdateContext, with coordinator: UIFocusAnimationCoordinator) {
|
2018-01-22 20:01:53 +00:00
|
|
|
let normalColor = UIColor(red: 174 / 255.0, green: 198 / 255.0, blue: 207 / 255.0, alpha: 1)
|
|
|
|
|
let focusColor = UIColor(red: 117 / 255.0, green: 155 / 255.0, blue: 169 / 255.0, alpha: 1)
|
2017-05-16 14:30:08 +00:00
|
|
|
|
2016-11-16 16:01:27 +00:00
|
|
|
backgroundColor = isFocused ? focusColor : normalColor
|
|
|
|
|
}
|
|
|
|
|
}
|