Fixes compiling with Xcode 14

This commit is contained in:
Riley Testut 2023-08-11 21:37:21 -05:00
parent 9ab8cf29b6
commit 43fedf6fcc
2 changed files with 8 additions and 8 deletions

View File

@ -62,7 +62,7 @@ private extension GamePickerViewController
configuration.secondaryText = game.identifier
configuration.secondaryTextProperties.font = .preferredFont(forTextStyle: .caption1)
configuration.image = UIImage(resource: .boxArt)
configuration.image = UIImage(named: "BoxArt")
configuration.imageProperties.maximumSize = CGSize(width: 48, height: 48)
configuration.imageProperties.reservedLayoutSize = CGSize(width: 48, height: 48)
configuration.imageProperties.cornerRadius = 4

View File

@ -26,13 +26,13 @@ extension OSLogEntryLog.Level
var localizedName: String {
switch self
{
case .undefined: NSLocalizedString("Undefined", comment: "")
case .debug: NSLocalizedString("Debug", comment: "")
case .info: NSLocalizedString("Info", comment: "")
case .notice: NSLocalizedString("Notice", comment: "")
case .error: NSLocalizedString("Error", comment: "")
case .fault: NSLocalizedString("Fault", comment: "")
@unknown default: NSLocalizedString("Unknown", comment: "")
case .undefined: return NSLocalizedString("Undefined", comment: "")
case .debug: return NSLocalizedString("Debug", comment: "")
case .info: return NSLocalizedString("Info", comment: "")
case .notice: return NSLocalizedString("Notice", comment: "")
case .error: return NSLocalizedString("Error", comment: "")
case .fault: return NSLocalizedString("Fault", comment: "")
@unknown default: return NSLocalizedString("Unknown", comment: "")
}
}
}