Continue conversion from AppAssets to shared Assets.

This commit is contained in:
Brent Simmons committed 2025-11-18 22:08:33 -08:00
1 parent 35be01c220
commit 39ffd38461
24 files changed
+78 -74

No files matched your search

+4 -4
View File
@@ -25,16 +25,16 @@ final class ArticleExtractorButton: UIButton {
switch buttonState {
case .error:
stripAnimatedSublayer()
setImage(AppAssets.articleExtractorError, for: .normal)
setImage(Assets.Images.articleExtractorError, for: .normal)
case .animated:
setImage(nil, for: .normal)
setNeedsLayout()
case .on:
stripAnimatedSublayer()
setImage(AppAssets.articleExtractorOn, for: .normal)
setImage(Assets.Images.articleExtractorOn, for: .normal)
case .off:
stripAnimatedSublayer()
setImage(AppAssets.articleExtractorOff, for: .normal)
setImage(Assets.Images.articleExtractorOff, for: .normal)
}
}
}
@@ -77,7 +77,7 @@ final class ArticleExtractorButton: UIButton {
let images = [image1, image2, image1]
animatedLayer = CALayer()
let imageSize = AppAssets.articleExtractorOff.size
let imageSize = Assets.Images.articleExtractorOff.size
animatedLayer!.bounds = CGRect(x: 0, y: 0, width: imageSize.width, height: imageSize.height)
animatedLayer!.position = CGPoint(x: bounds.midX, y: bounds.midY)