diff --git a/openHAB.xcodeproj/project.pbxproj b/openHAB.xcodeproj/project.pbxproj index 50383f6d..5852d3c3 100644 --- a/openHAB.xcodeproj/project.pbxproj +++ b/openHAB.xcodeproj/project.pbxproj @@ -121,8 +121,6 @@ DAC9395522B00E7600C5F423 /* XCTestCaseExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAC9395422B00E7600C5F423 /* XCTestCaseExtension.swift */; }; DAC9AF4724F9669F006DAE93 /* ObservableOpenHABWidgetExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAC9AF4624F9669F006DAE93 /* ObservableOpenHABWidgetExtension.swift */; }; DAC9AF4924F966FA006DAE93 /* LazyView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAC9AF4824F966FA006DAE93 /* LazyView.swift */; }; - DACB636227D3FC6500041931 /* error.png in Resources */ = {isa = PBXBuildFile; fileRef = DACB636127D3FC6500041931 /* error.png */; }; - DACB636327D3FC6500041931 /* error.png in Resources */ = {isa = PBXBuildFile; fileRef = DACB636127D3FC6500041931 /* error.png */; }; DAEAA89D21E6B06400267EA3 /* ReusableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAEAA89C21E6B06300267EA3 /* ReusableView.swift */; }; DAEAA89F21E6B16600267EA3 /* UITableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAEAA89E21E6B16600267EA3 /* UITableView.swift */; }; DAF0A28B2C56E3A300A14A6A /* RollershutterCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAF0A28A2C56E3A300A14A6A /* RollershutterCell.swift */; }; @@ -411,7 +409,6 @@ DAC9395422B00E7600C5F423 /* XCTestCaseExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XCTestCaseExtension.swift; sourceTree = ""; }; DAC9AF4624F9669F006DAE93 /* ObservableOpenHABWidgetExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ObservableOpenHABWidgetExtension.swift; sourceTree = ""; }; DAC9AF4824F966FA006DAE93 /* LazyView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LazyView.swift; sourceTree = ""; }; - DACB636127D3FC6500041931 /* error.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = error.png; sourceTree = ""; }; DAD488B2287DDDFE00414693 /* nb */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nb; path = nb.lproj/Interface.strings; sourceTree = ""; }; DAD488B3287DDDFE00414693 /* nb */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nb; path = Resources/nb.lproj/Intents.strings; sourceTree = ""; }; DAD488B4287DDDFF00414693 /* nb */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nb; path = nb.lproj/Localizable.strings; sourceTree = ""; }; @@ -846,6 +843,7 @@ children = ( DFB2624518830A3600D3244D /* Images.xcassets */, DACB636127D3FC6500041931 /* error.png */, + DF4B84061885AE0E00F34902 /* blankicon.png */, ); name = Images; sourceTree = ""; @@ -1249,7 +1247,6 @@ 6557AF902C0241C10094D0C8 /* PrivacyInfo.xcprivacy in Resources */, DA07751B2346705F0086C685 /* Assets.xcassets in Resources */, 938BF9D524EFD5B100E6B52F /* Localizable.strings in Resources */, - DACB636327D3FC6500041931 /* error.png in Resources */, DA0775192346705D0086C685 /* Interface.storyboard in Resources */, 932602EE2382892B00EAD685 /* Assets.xcassets in Resources */, ); @@ -1278,7 +1275,6 @@ 938BF9C424EFCB9F00E6B52F /* Main.storyboard in Resources */, DA817E7A234BF39B00C91824 /* CHANGELOG.md in Resources */, DA4D4DB5233F9ACB00B37E37 /* README.md in Resources */, - DACB636227D3FC6500041931 /* error.png in Resources */, DA88F8C622EC377200B408E5 /* ReleaseNotes.md in Resources */, DFDF45311932042B00A6E581 /* legal.rtf in Resources */, 656916D91FCB82BC00667B2A /* GoogleService-Info.plist in Resources */, diff --git a/openHAB/OpenHABSitemapViewController.swift b/openHAB/OpenHABSitemapViewController.swift index 0f2dca07..47d26f23 100644 --- a/openHAB/OpenHABSitemapViewController.swift +++ b/openHAB/OpenHABSitemapViewController.swift @@ -47,9 +47,12 @@ struct OpenHABImageProcessor: ImageProcessor { let svgkSourceNSData = SVGKSourceNSData.source(from: data, urlForRelativeLinks: nil) let parseResults = SVGKParser.parseSource(usingDefaultSVGKParser: svgkSourceNSData) if parseResults?.parsedDocument != nil, let image = SVGKImage(parsedSVG: parseResults, from: svgkSourceNSData), image.hasSize() { + if image.size.width > 1000 || image.size.height > 1000 { + return UIImage(systemSymbol: .exclamationmarkTriangle).withTintColor(.orange) + } return image.uiImage } else { - return UIImage(named: "error.png") + return UIImage(systemSymbol: .exclamationmarkTriangle).withTintColor(.orange) } default: return Kingfisher.DefaultImageProcessor().process(item: item, options: KingfisherParsedOptionsInfo(KingfisherManager.shared.defaultOptions)) diff --git a/openHAB/error.png b/openHAB/error.png deleted file mode 100644 index 68bbff22..00000000 Binary files a/openHAB/error.png and /dev/null differ