Files
SideStore/AltStore/SwiftUI/Generated/Assets.swift

208 lines
6.5 KiB
Swift
Raw Normal View History

Merge SwiftUI (#221) + SwiftUI improvements (#265) commit 22f1ff7cd7d4d4750eeda2067d23846900239b83 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sat May 20 11:29:01 2023 -0700 fix: actually disable LocalConsole's character limit commit 4b51915da7bc0637ccf819ac45c7d727d450ae12 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sat May 20 11:27:12 2023 -0700 Merge SwiftUI improvements (#265) commit 7f73f2adef2b636e05d3cd460ab5b3cab3aabca9 Merge: 72f34dd2 38a1c7ee Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sat May 20 11:23:07 2023 -0700 Merge remote-tracking branch 'origin/fabianthdev/feature/SwiftUI' into naturecodevoid/swiftui-improvements commit 72f34dd2868e45a909633d73833475d445cf0b78 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Wed Apr 12 18:21:49 2023 -0700 feat: default to Storm icon for PR builds Signed-off-by: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> commit 060c37c42353f6ebca7416f16a428787d07686fa Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Apr 9 19:40:53 2023 -0700 fix(icons): sky appears correctly in light mode commit 8c2968aeb3e7020e325a7e48dbdd3e3b72336610 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Apr 9 14:29:03 2023 -0700 fix: build errors commit 4f512b63184f578d77980af0f3a0d14245607007 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Apr 9 13:54:01 2023 -0700 project(minimuxer): fix actions build error commit 5b752cf26ee66e7a49acf9e03a8c43e0236ada8b Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Apr 9 13:51:54 2023 -0700 fix: remove duplicate isSideStore checks with a StoreApp extension commit 62a478277e1fe60a69a2028c17e2c0dcc083c7c7 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Apr 9 13:41:58 2023 -0700 fix(AsyncFallibleButton): try to use failureReason and then fallback to localizedDescription commit 994b2318a9efb44c906efa51b92278ebbfb1dd33 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Apr 9 13:38:44 2023 -0700 feat(dev mode): add AFC file explorer and dump profiles commit 423ac28ba3e6bcf6052d98d285f8c7d768312d1f Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Apr 9 13:35:14 2023 -0700 project(AltStore): xcode wants to move these around I guess commit af2cdd48d6deea68d8987d1c22925ee0150f8aba Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Apr 9 13:34:57 2023 -0700 feat: add debug logging toggle commit 44fe0c5686cb00b5b85d4dddd8a108efedfebc71 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Apr 9 13:33:11 2023 -0700 project(minimuxer): Add libminimuxer as an input file for build step commit 3d46a3069ab1fa166707410a5dfd05ca1a877e3c Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Apr 9 13:32:22 2023 -0700 fix: handle source conflict in merge policy commit 82e8fb73891614abcbb9d9c8b6ca6f601f8c67a4 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Apr 9 13:31:39 2023 -0700 docs: include info on Developer Mode commit 1dd0cd7d903b2473aaa0c817d476ec9a05b99705 Merge: 92a9650c 566841a9 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Thu Apr 6 21:07:33 2023 -0700 Merge branch 'fabianthdev/feature/SwiftUI' into naturecodevoid/swiftui-improvements commit 566841a9a632c1d83e0e5752809273ede940c38a Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Thu Apr 6 21:06:07 2023 -0700 Fix not being able to open the project commit 92a9650c0c62044eb78201834567160e95199948 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Thu Apr 6 20:49:49 2023 -0700 Apply DevModeView suggestion commit df94e794721480188111402e326ab4029a8767dd Merge: d3cfc4ba cd2c5ad7 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Thu Apr 6 20:48:52 2023 -0700 Merge branch 'fabianthdev/feature/SwiftUI' into naturecodevoid/swiftui-improvements commit cd2c5ad7b4cd96a5b2a05e03c14a8fe404e35933 Merge: 3466870d 6146f1bd Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Thu Apr 6 20:43:10 2023 -0700 Merge remote-tracking branch 'origin/develop' into fabianthdev/feature/SwiftUI commit d3cfc4bab9270e5baf656ea8a272299ca48da4ae Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Wed Feb 22 13:05:11 2023 -0800 FileExplorer: Replace file when inserting commit df62461d4a08a07812fcc548d60e3f7baa2da09e Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Wed Feb 22 13:04:52 2023 -0800 Settings: Add Export Logs and commit xcodeproj changes commit 817d2de5e018e73c3135382f14d11d72188d1a97 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Wed Feb 22 12:19:07 2023 -0800 Rename View+SideStore commit 3ea478ad05047006986deae73adcb5cb1e77c4ec Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Wed Feb 22 12:18:42 2023 -0800 DevMode: Add password commit 13f9a9d1bff98e7bddc4c7cfd859dea329fa1c4c Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Wed Feb 22 11:43:13 2023 -0800 AdvancedSettingsView: improve anisette URL by using a label instead of a placeholder commit 3821a6034d0ef6210bebf1ec743e1298d885ac46 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Tue Feb 21 17:34:56 2023 -0800 project: attempt to fix crashing on launch commit 3e8d7da0c3c026f9e5030a94bbb6bd336156da74 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Feb 19 13:49:22 2023 -0800 AdvancedSettingsView: Remove autocomplete from anisette URL text field commit a42c1a705f711306acc09eec75987f5daa4f0619 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Feb 19 13:25:59 2023 -0800 SettingsView: Adjust ordering a little bit and remove accent color commit 30efc6f210350afb63ac621852e449201526fff5 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Feb 19 13:19:26 2023 -0800 LaunchViewController: Revert changes commit 60412721eebb539c808e27744941121872eda5b3 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Feb 19 13:04:42 2023 -0800 Fix build errors hopefully this doesn't have any unintended side effects commit cba00a3b9d6e8fd8ba476f9096e6ea317bdd21c2 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Feb 19 12:03:22 2023 -0800 Add Advanced Settings in-app commit 2aa880d10e102b8464ebfd6da462490659ad5f52 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Feb 19 10:56:01 2023 -0800 Fix build errors after merge commit 47848ddd18f36a769e17f3ccac6559f50144576f Merge: deac960e 3466870d Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Feb 19 09:56:21 2023 -0800 Merge branch 'fabianthdev/feature/SwiftUI' into naturecodevoid/swiftui-improvements Signed-off-by: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> commit deac960e10cad17e614ae3ff49dcd256af36d02b Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Feb 19 09:54:56 2023 -0800 Revert OutputCapturer changes since Fabian already added the fix commit 9f05123e42e9781acf82e74560f54548e427f21e Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Feb 19 09:16:49 2023 -0800 AppIconView: Make isSideStore required commit d9a4b0709594c6882faf5712fa855e5195919e71 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Feb 19 09:16:07 2023 -0800 Fix changing SideStore app icon not displaying My Apps commit 839699ee0304a4009dfc52013bb97cc2b9870339 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Feb 19 09:00:19 2023 -0800 Icons: add Vista by Swifticul commit 81409227d61c5092da7712662c2108c94c7a4603 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Feb 19 08:06:33 2023 -0800 Add developer mode commit 49b9be160f613b8fdfe59c17522d92b207de298a Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sun Feb 19 07:57:29 2023 -0800 AppRowView: Disable ratings if there aren't any ratings commit 3466870d8fd9971385725f105750951e9f8b27df Author: Fabian Thies <git@fabian-thies.de> Date: Sun Feb 19 14:31:01 2023 +0100 [ADD] UI for writing an app review and submit an app rating commit ffe8a92a4e9b2c904b137ac05e2db1a61f519d73 Author: Fabian Thies <git@fabian-thies.de> Date: Sun Feb 19 14:30:21 2023 +0100 [CHANGE] UI fixes and SwiftUI previews for easier development commit bc2cae46a8dcd2b723160f5f02690ba57e85637b Author: Fabian Thies <git@fabian-thies.de> Date: Sun Feb 19 14:25:13 2023 +0100 [ADD] Refresh all apps functionality in MyAppsView commit a95d8a502ccaa76d4ac579150ea7f58a3afdf9ed Author: Fabian Thies <git@fabian-thies.de> Date: Sun Feb 19 11:40:26 2023 +0100 [FIX] STDOUT output not visible in Xcode console commit 19e66112ddf78d9a923a59f0ce28bb7a5a6ee992 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sat Feb 18 20:27:06 2023 -0800 SourcesView: Fix 1 trusted source causing an error making all trusted sources fail to load commit 0d3cb843ea32d0a0d6a4c5e240fd901febd254b1 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sat Feb 18 20:26:32 2023 -0800 SourcesViewController: Fix 1 trusted source causing an error making all trusted sources fail to load commit df1a662accec86a3f8a6b3911b53f352d7247f16 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sat Feb 18 20:25:58 2023 -0800 FetchTrustedSourcesOperation: Remove redundant if statement commit 684c9e08eb5ba81de7c94a068491f69283bedc8a Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Sat Feb 18 10:48:05 2023 -0800 Fix HMR commit c585c57965d6a33d6d283e645dd9f19379dd1420 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Fri Feb 17 18:51:06 2023 -0800 Revert fixes since it didn't actually fix the problem commit 3605ca64224e81c09a803fae7f45a384feb5df6a Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Fri Feb 17 18:20:56 2023 -0800 Fix HMR again commit 40f4c94f4da77f3f4f97eea02cef1c463b8cfcd7 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Fri Feb 17 18:11:25 2023 -0800 Fix HMR crashing the app commit 986465d8f401986b152bc0712148c67ea5554834 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Fri Feb 17 17:44:56 2023 -0800 Project: Add HMR https://github.com/krzysztofzablocki/Inject#individual-developer-setup-once-per-machine commit 09db1ba9fce61e76993b035194182973a9789ffc Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Thu Feb 16 18:13:32 2023 -0800 SettingsView: Move App Icon to a new, general settings section commit 8874480b8cbd944d232d086a5bd7353011a44394 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Thu Feb 16 17:57:51 2023 -0800 Icons: invert Sky commit f0cc4613daf7cbdc82620356297ddac8b1268799 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Thu Feb 16 17:57:19 2023 -0800 AppIconsView: Add artists commit bec78322a44f450feae06e968e4b2f4aa0997323 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Wed Feb 15 21:00:28 2023 -0800 actions: Add build step that changes default icon commit 03777fd2e72f5fdc3ca7259b7cc5b8c1be5f29ea Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Wed Feb 15 20:49:07 2023 -0800 Icons: add Sky, Honeydew, Midnight commit 96ae60a9f2c98f7e1ddcae59f5a085d7a2e05418 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Wed Feb 15 19:36:10 2023 -0800 AppIconsView: improve the way primary icons are handled commit c7ad6b10a1ed4181037f5d2a9c07b0810f3d6887 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Wed Feb 15 19:35:57 2023 -0800 Icons: reduce image sizes commit 8b8e471c976dc4c3c986026c759feeb39e858305 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Wed Feb 15 18:52:42 2023 -0800 Add App Icon changer commit 38c0a8a9a35e491833387134ba5089d003261861 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Tue Feb 14 08:24:49 2023 -0800 Fix ConnectAppleIDView being shoved into a sidebar on iPad commit e7ff6496c1d68eb5632cd44e6cbde3f2ec904dcc Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Tue Feb 14 08:20:16 2023 -0800 AuthenticationOperation: fix 2FA code not being displayed Bandaid fix, it would be better to have the alert in ConnectAppleIDView commit c2e89b09ead25413fb242d376030f8767ccf058c Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Mon Feb 13 21:44:48 2023 -0800 RootView: Fix UI being shoved into sidebar on iPad (closes #264, thanks @Swifticul!) commit ec4dbb667950fa56a299fd85df4de9116d9f53e8 Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Mon Feb 13 21:06:59 2023 -0800 OutputCapturer: fix logging disappearing from Xcode/idevicedebug run commit d80c9ba2a8060e86870550eea5eda6211d1d4ade Author: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Mon Feb 13 21:06:17 2023 -0800 remove unused apps.json files commit b2f81bf7c6cbaa909a0ddf6daf67324353a7ce8e Author: Fabian Thies <git@fabian-thies.de> Date: Mon Feb 13 18:56:34 2023 +0100 [ADD] LocalConsole showing STDOUT and STDERR commit 2fffa6e122f53f7834255cfb9678e37f546081a8 Author: Fabian Thies <git@fabian-thies.de> Date: Sat Feb 4 14:35:58 2023 +0100 [FIX] App compatibility info commit 723c8e9539eefcb8562201689074d2a2f3ad4e41 Author: Fabian Thies <git@fabian-thies.de> Date: Sat Feb 4 14:29:02 2023 +0100 [ADD] Debug entries for refresh attempts, sending feedback, advanced settings, and resetting the pairing file commit 07159b0ea62bc5f3def168401b208d671797f500 Author: Fabian Thies <git@fabian-thies.de> Date: Sat Feb 4 13:07:04 2023 +0100 [ADD] Error log view commit e0bd54389c051f9beaa5061cf53e1a6d4992b310 Author: Fabian Thies <git@fabian-thies.de> Date: Sat Feb 4 12:55:25 2023 +0100 [FIX] Various UI issues commit 57213fbf0c65f529a30fa7a33cdc97b82a69b086 Author: Fabian Thies <git@fabian-thies.de> Date: Sat Feb 4 12:46:43 2023 +0100 [ADD] App report button and trusted source badge in app detail view commit 0239dfcd6d364f83db5612d04afa8e0789aea8cc Author: Fabian Thies <git@fabian-thies.de> Date: Fri Feb 3 18:19:07 2023 +0100 [FIX] AppIDsView and authentication workflow commit 5af6f825ee9dab6b589eaa732595468c4e6ab6c1 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Feb 3 18:16:48 2023 +0100 [FIX] Full screen app screenshot previews commit b4859512ab768c9f3543db0fe7c23a642128b34d Author: Fabian Thies <git@fabian-thies.de> Date: Fri Feb 3 14:58:06 2023 +0100 [FIX] Accent color commit 3d0f385af7758bdd4d4c21fe643bc5e4c491123e Author: Fabian Thies <git@fabian-thies.de> Date: Tue Jan 31 22:38:42 2023 +0100 [CHANGE] Overhaul of the AppDetailView with version history, reviews & ratings, and app information commit f3e58e1485a7b61d8afe919cdfbc61e9275b5bc4 Author: Fabian Thies <git@fabian-thies.de> Date: Tue Jan 31 22:37:37 2023 +0100 [UPDATE] AppPillButton dimensions and expiration text commit d3e04c1db711a21aab843ba02242fa16ac437dee Author: Fabian Thies <git@fabian-thies.de> Date: Tue Jan 31 22:35:09 2023 +0100 [FIX] Show App IDs button only if user is logged in with their Apple ID commit ed1970245a4f5eba0ed1e5c407caec82689d2656 Author: Fabian Thies <git@fabian-thies.de> Date: Tue Jan 31 22:32:11 2023 +0100 [ADD] Load and show trusted sources with option to add them to the app commit 15dd885a1b64f0471bf38b011d88131028716eae Author: Fabian Thies <git@fabian-thies.de> Date: Tue Jan 31 22:30:21 2023 +0100 [ADD] Credits section in SettingsView commit 4663c017008200ab00cb8dd04a1e82117068261b Author: Fabian Thies <git@fabian-thies.de> Date: Mon Jan 16 21:23:16 2023 +0100 [CHANGE] Extracted all strings into the Localizable.strings commit e733601c667255fa7292401027f62c51cbe853b3 Author: Fabian Thies <git@fabian-thies.de> Date: Mon Jan 16 19:03:33 2023 +0100 [FIX] Text alignment in SettingsView commit fc974a80794ec8e5a715c86c7eeecf8bcf75d88c Author: Fabian Thies <git@fabian-thies.de> Date: Mon Jan 16 19:02:58 2023 +0100 [ADD] Hint for new users who don't have any sources commit 6aaadc79e5dca2e4ba159efe8ffdc03159d476c7 Author: Fabian Thies <git@fabian-thies.de> Date: Mon Jan 16 18:59:39 2023 +0100 [ADD] AppScreenshot view with ImageProcessor to automatically rotate landscape screenshots commit b9177e89c64324c5085813c08cb9dc74d954816a Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 13:37:38 2023 +0100 [FIX] Issues introduced by changes to the AltSource specification. commit 1531c0a77f73118005fc2de1b9b9cfe8a1f6f0dd Author: Fabian Thies <github@fabian-thies.de> Date: Fri Jan 13 12:48:27 2023 +0100 [UPDATE] Translations (#7) This PR merges all the new translations made on the SideStore weblate instance (https://translate.sidestore.io/projects/sidestore/app). New translations: - French - Korean Updated translations: - Spanish Co-authored-by: bogotesr <bogotesr@gmail.com> Co-authored-by: GABO1423 <35014183+GABO1423@users.noreply.github.com> Co-authored-by: Joss Laymon <71040782+bogotesr@users.noreply.github.com> Co-authored-by: mindfreakdev <shost212@gmail.com> Co-authored-by: Python <rjp2030@proton.me> Co-authored-by: Testi Cules <ervd516@gmail.com> commit 1dde36facea14d908afd046cabfcca25d52c5e74 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 12:25:50 2023 +0100 [FIX] Changes made by Xcode 14 after building the app commit c3c3783ba49d412c2fcaa5046f140fc47c611cd3 Author: Upal <shost212@gmail.com> Date: Mon Dec 26 19:18:33 2022 +0530 Added Hindi Language (#5) * Added Hindi Language commit 8400af3423543f5c9df003689d9a595606bae2e7 Author: mindfreakdev <shost212@gmail.com> Date: Sun Dec 25 16:52:01 2022 +0530 Added Dutch Language commit 243c7efc09fc32295e86160e602cdb47298c2de8 Author: mindfreakdev <shost212@gmail.com> Date: Sun Dec 25 12:30:42 2022 +0530 Added Ukrainian Language commit 0298a0235bdda377c36dbe1ccd4caf1940c27144 Author: mindfreakdev <shost212@gmail.com> Date: Sun Dec 25 12:28:00 2022 +0530 Added Ukrainian Language commit e5b2496b0987c4ee5ed7aec06cc5c9a490af38e5 Author: Gabriel Morazán <35014183+GABO1423@users.noreply.github.com> Date: Sun Dec 25 01:08:47 2022 -0400 Screen Crunch sucks Signed-off-by: Gabriel Morazán <35014183+GABO1423@users.noreply.github.com> commit 75c52a3af269d63e72e0d40756e75ce23563af2f Author: GABO1423 <35014183+GABO1423@users.noreply.github.com> Date: Sun Dec 25 00:58:22 2022 -0400 Spanish Translation Tweaks commit 2c07009b0457cd7e09f7168af9b5d0ebde182ca4 Author: bogotesr <bogotesr@gmail.com> Date: Sat Dec 24 21:06:28 2022 -0700 Add es-419 and finish adding support for the translations Added Latin American Spanish (probably not the best translation) Made everything reference the swiftgen stuff rather than having strings commit 6257fdcd61c6f33e06ed648efc3c813a52c05f79 Author: Fabian Thies <git@fabian-thies.de> Date: Thu Dec 22 10:29:57 2022 +0100 [CHANGE] Extracted some example strings and replaced them by generated localized strings commit e23956d4ed3d37dfc31162b0fc7c3943766f6e09 Author: Fabian Thies <git@fabian-thies.de> Date: Thu Dec 22 10:21:57 2022 +0100 [ADD] SwiftGen configuration and generated files commit 1341de83154655f526a48f57174c10e86018ab55 Author: Fabian Thies <git@fabian-thies.de> Date: Thu Dec 22 10:10:58 2022 +0100 [ADD] Empty Localizable.strings commit 77f5844e4d4b86562a9a55c021e01937da1be1c1 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 12:04:10 2023 +0100 [WIP] AppScreenshot view with ImageProcessor to automatically rotate landscape images. Possible through my fork of the AsyncImage framework. commit b3c4819e8dfbbe4e901c37b70d7f608bc0b6db32 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 12:02:56 2023 +0100 [WIP] Fetch trusted sources in SourcesView commit a6ca73f8fcfc6b007b9f745cd5b54aef263e880c Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 12:02:06 2023 +0100 [WIP] AppIDs view in My Apps section commit f17d00c0bcf6fa69d65f55218120462a8d01b6d2 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 12:00:00 2023 +0100 [ADD] Badge in AppDetailView for apps from the official source and (WIP) trusted sources commit 875453533b7c769a21f949659aa94639cdc6d912 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 11:58:25 2023 +0100 [ADD] Hint view in MyAppsView telling the user about where to find updates in the future if no updates are available commit 9a7a39a58e6788ee0198448c1ae63c7c812a95c5 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 11:54:44 2023 +0100 [FIX] App permission icon color commit 65db392388d39ccc553f5474c1c8ce238c467145 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 11:51:06 2023 +0100 [ADD] Show source name and external url domain in NewsItemView commit 6a6fc2299591c05589fc7564f91ef59d99b13b5d Author: Fabian Thies <git@fabian-thies.de> Date: Fri Dec 23 16:02:57 2022 +0100 [ADD] Full-screen app screenshot preview commit 5697c4c063c97866055d5ddfb72818b7ec7aee4e Author: Fabian Thies <git@fabian-thies.de> Date: Fri Dec 23 15:21:16 2022 +0100 [CHANGE] Replace system image name strings with SFSymbols commit bcd54067d3061ab3e63114166e37d3ab8c6a17a8 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Dec 23 13:12:39 2022 +0100 [ADD] Dependency: SFSafeSymbols commit c7ce32a5628ea7f52f03e70c85e1e2ca8fbce33b Author: Fabian Thies <git@fabian-thies.de> Date: Wed Dec 21 17:49:49 2022 +0100 [ADD] WIP: Promoted category cards and app list filter button in BrowseView commit 5a1496a3cd91f33c3e3ddca579ae4194d84654c0 Author: Fabian Thies <git@fabian-thies.de> Date: Wed Dec 21 17:48:45 2022 +0100 [FIX] AccentColor in dark mode commit 497c048240e9d410afcb83cd285488699b18a800 Author: Fabian Thies <git@fabian-thies.de> Date: Wed Dec 21 17:48:23 2022 +0100 [ADD] Carousel for SideStore-specific announcements in NewsView commit 02e48a207f6e8b29cabbaf6cae76dd761076c8ca Author: Fabian Thies <git@fabian-thies.de> Date: Wed Dec 21 17:45:44 2022 +0100 [ADD] WIP: Add My Apps view with support for sideloading new apps, refreshing installed apps and much more commit a0eb30f98ea5d04883904cda69db1060e0788daa Author: Fabian Thies <git@fabian-thies.de> Date: Mon Dec 12 19:20:54 2022 +0100 [CHANGE] Fixed the AppRowView background blur effect commit 378631e976f4e7cf07728e8f804eee1748d24182 Author: Fabian Thies <git@fabian-thies.de> Date: Mon Dec 12 19:20:10 2022 +0100 [ADD] Backported dismiss() environment variable to let views dismiss themselves commit 0e7083539df52034f002f8db697c802b2a434fc5 Author: Fabian Thies <git@fabian-thies.de> Date: Mon Dec 12 19:18:57 2022 +0100 [ADD] Search bar for BrowseView on iOS 15 commit 0c034b61d9b264b226bbfa88a419a091489ec5af Author: Fabian Thies <git@fabian-thies.de> Date: Mon Dec 12 19:16:36 2022 +0100 [CHANGE] Fetch news when NewsView appears commit 89dea75b84cbebd398503da9457d16369911f44f Author: Fabian Thies <git@fabian-thies.de> Date: Mon Dec 12 19:15:16 2022 +0100 Improved app detail view commit 81ea791b63f7a4411c949222e862fa07a4175c5a Author: Fabian Thies <git@fabian-thies.de> Date: Mon Dec 12 19:12:38 2022 +0100 [ADD] Authentication view for connecting SideStore to an Apple ID commit c81f716427688fca0e6bd44e68e9d19b0d352c2c Author: Fabian Thies <git@fabian-thies.de> Date: Sun Nov 27 16:41:30 2022 +0100 [WIP] Fixed the app permissions grid in AppDetailView commit eb151d74dd7c97dfdd804aee603625b3993d8e6b Author: Fabian Thies <git@fabian-thies.de> Date: Sun Nov 27 16:17:08 2022 +0100 [ADD] Expandable app and version description texts commit 0dc7af5e510fcd8c1bbccb19cde62ab38fe8742f Author: Fabian Thies <git@fabian-thies.de> Date: Sun Nov 27 00:26:15 2022 +0100 [ADD] iOS 13 compatible AsyncImage implementation with cache commit d3e8473f45b89455388cc449bba36e014a037687 Author: Fabian Thies <git@fabian-thies.de> Date: Wed Nov 23 22:34:02 2022 +0100 [ADD] News, Browse and Settings views ported to SwiftUI This commit contains WIP SwiftUI versions of most of the views in SideStore. commit 38a1c7eef6392db38af80e582235555c65333c8b Author: Fabian Thies <git@fabian-thies.de> Date: Sat May 20 20:05:36 2023 +0200 Fix rebase issues commit f6252c3a8b8453aa1e7831d62c944f35134baa36 Author: Fabian Thies <git@fabian-thies.de> Date: Sat May 20 19:10:51 2023 +0200 Fix trusted sources being enabled in onboarding process regardless of user choice commit 653d80b88e1223cdc45da908237bfc140ecb4717 Author: Fabian Thies <git@fabian-thies.de> Date: Fri May 19 13:14:15 2023 +0200 Add onboarding screens for an easy setup of SideStore commit 89609ad35c52b712d7440accb65e28fb39586194 Author: Fabian Thies <git@fabian-thies.de> Date: Sun Feb 19 14:31:01 2023 +0100 [ADD] UI for writing an app review and submit an app rating commit 2211013e573c59b9c19ec1a5d171711be652ccbc Author: Fabian Thies <git@fabian-thies.de> Date: Sun Feb 19 14:30:21 2023 +0100 [CHANGE] UI fixes and SwiftUI previews for easier development commit f206ee1406d5619e7f5740cd0017c8175ef87cd8 Author: Fabian Thies <git@fabian-thies.de> Date: Sun Feb 19 14:25:13 2023 +0100 [ADD] Refresh all apps functionality in MyAppsView commit 00dc9b36af8ae5d8f6180aa7c8cc1896f023abde Author: Fabian Thies <git@fabian-thies.de> Date: Sun Feb 19 11:40:26 2023 +0100 [FIX] STDOUT output not visible in Xcode console commit 24146cef90894f8727fffec5d8d75b9c28580911 Author: Fabian Thies <git@fabian-thies.de> Date: Mon Feb 13 18:56:34 2023 +0100 [ADD] LocalConsole showing STDOUT and STDERR commit c46a50ec580eddaf1ad5e7587d1f4ccf4f9d2313 Author: Fabian Thies <git@fabian-thies.de> Date: Sat Feb 4 14:35:58 2023 +0100 [FIX] App compatibility info commit de7e909c01d7727415f4e37c2e721eefed4ee1f5 Author: Fabian Thies <git@fabian-thies.de> Date: Sat Feb 4 14:29:02 2023 +0100 [ADD] Debug entries for refresh attempts, sending feedback, advanced settings, and resetting the pairing file commit fbc754d8b7dac4e0c4c1a7343190cc97873e80aa Author: Fabian Thies <git@fabian-thies.de> Date: Sat Feb 4 13:07:04 2023 +0100 [ADD] Error log view commit 767d878051d23e87facee6ce6ec14f272981522d Author: Fabian Thies <git@fabian-thies.de> Date: Sat Feb 4 12:55:25 2023 +0100 [FIX] Various UI issues commit 132b140af2d70cfac8d0e8e5db3d2d02eab68d94 Author: Fabian Thies <git@fabian-thies.de> Date: Sat Feb 4 12:46:43 2023 +0100 [ADD] App report button and trusted source badge in app detail view commit df7d8871ffea9239e6571e200602d213365be82e Author: Fabian Thies <git@fabian-thies.de> Date: Fri Feb 3 18:19:07 2023 +0100 [FIX] AppIDsView and authentication workflow commit ca2398e4c7973d4cf2c5371d14a97cede41a2a52 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Feb 3 18:16:48 2023 +0100 [FIX] Full screen app screenshot previews commit b8f02d2152eba4bf1fb71df5c1a9a6e2ab866047 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Feb 3 14:58:06 2023 +0100 [FIX] Accent color commit e85876cd24ff4fa81a4d0628766cbe18746c2d4a Author: Fabian Thies <git@fabian-thies.de> Date: Tue Jan 31 22:38:42 2023 +0100 [CHANGE] Overhaul of the AppDetailView with version history, reviews & ratings, and app information commit 3f06a530587ff02145f4e3fc9036358e524b4d8a Author: Fabian Thies <git@fabian-thies.de> Date: Tue Jan 31 22:37:37 2023 +0100 [UPDATE] AppPillButton dimensions and expiration text commit 4ee053a4f9a59597ce44517f08e74a972f49fdf6 Author: Fabian Thies <git@fabian-thies.de> Date: Tue Jan 31 22:35:09 2023 +0100 [FIX] Show App IDs button only if user is logged in with their Apple ID commit e5369524ce0d475f11743f96f1bbe07a75d67c14 Author: Fabian Thies <git@fabian-thies.de> Date: Tue Jan 31 22:32:11 2023 +0100 [ADD] Load and show trusted sources with option to add them to the app commit 77465cebd049379fd3e52f453d57ed699b384c1f Author: Fabian Thies <git@fabian-thies.de> Date: Tue Jan 31 22:30:21 2023 +0100 [ADD] Credits section in SettingsView commit f90bf3bfcf6982497b090c0b0995111560436d12 Author: Fabian Thies <git@fabian-thies.de> Date: Mon Jan 16 21:23:16 2023 +0100 [CHANGE] Extracted all strings into the Localizable.strings commit 0000610b9dae8e336ed7cd059834690639a76f71 Author: Fabian Thies <git@fabian-thies.de> Date: Mon Jan 16 19:03:33 2023 +0100 [FIX] Text alignment in SettingsView commit c7e095583d5be055e7cce48b8b943293aefa0c9b Author: Fabian Thies <git@fabian-thies.de> Date: Mon Jan 16 19:02:58 2023 +0100 [ADD] Hint for new users who don't have any sources commit a725f3e9cc2cec550a3d084a8e0a5664b87c1eb9 Author: Fabian Thies <git@fabian-thies.de> Date: Mon Jan 16 18:59:39 2023 +0100 [ADD] AppScreenshot view with ImageProcessor to automatically rotate landscape screenshots commit b5dea18073a6480c8ae1839ab3078cc4ca405328 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 13:37:38 2023 +0100 [FIX] Issues introduced by changes to the AltSource specification. commit b9b309e603d7912f4edc7cef0e16ce622515d1ce Author: Fabian Thies <github@fabian-thies.de> Date: Fri Jan 13 12:48:27 2023 +0100 [UPDATE] Translations (#7) This PR merges all the new translations made on the SideStore weblate instance (https://translate.sidestore.io/projects/sidestore/app). New translations: - French - Korean Updated translations: - Spanish Co-authored-by: bogotesr <bogotesr@gmail.com> Co-authored-by: GABO1423 <35014183+GABO1423@users.noreply.github.com> Co-authored-by: Joss Laymon <71040782+bogotesr@users.noreply.github.com> Co-authored-by: mindfreakdev <shost212@gmail.com> Co-authored-by: Python <rjp2030@proton.me> Co-authored-by: Testi Cules <ervd516@gmail.com> commit 15f1be0aa8469a6166b713c054d685db527500ef Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 12:25:50 2023 +0100 [FIX] Changes made by Xcode 14 after building the app commit ffd80ce0b4b098df1cdc41adbcf2b9d7c50d68bb Author: Upal <shost212@gmail.com> Date: Mon Dec 26 19:18:33 2022 +0530 Added Hindi Language (#5) * Added Hindi Language commit 350891ee2a558db6b6cac08a392bd733f3b8643b Author: mindfreakdev <shost212@gmail.com> Date: Sun Dec 25 16:52:01 2022 +0530 Added Dutch Language commit 5dec1cd561df4f257e91dac0bc3fc946a3be9c06 Author: mindfreakdev <shost212@gmail.com> Date: Sun Dec 25 12:30:42 2022 +0530 Added Ukrainian Language commit c4d235d742df09fe1ec677cc3aee30c5467d8a0f Author: mindfreakdev <shost212@gmail.com> Date: Sun Dec 25 12:28:00 2022 +0530 Added Ukrainian Language commit cdc6675dd5d402616c89cfecaf9e041c3f6b64be Author: Gabriel Morazán <35014183+GABO1423@users.noreply.github.com> Date: Sun Dec 25 01:08:47 2022 -0400 Screen Crunch sucks Signed-off-by: Gabriel Morazán <35014183+GABO1423@users.noreply.github.com> commit 85635bb26e57f266a1f46e60f4750804a7ad2809 Author: GABO1423 <35014183+GABO1423@users.noreply.github.com> Date: Sun Dec 25 00:58:22 2022 -0400 Spanish Translation Tweaks commit 3be0a4a89c17cc8a0e349f54f2a4adcc361d1ed2 Author: bogotesr <bogotesr@gmail.com> Date: Sat Dec 24 21:06:28 2022 -0700 Add es-419 and finish adding support for the translations Added Latin American Spanish (probably not the best translation) Made everything reference the swiftgen stuff rather than having strings commit 47e47fb3cfe6a228ccbb3a13254803273dcd9eda Author: Fabian Thies <git@fabian-thies.de> Date: Thu Dec 22 10:29:57 2022 +0100 [CHANGE] Extracted some example strings and replaced them by generated localized strings commit 48903034b6f91a1b34b59220025302657f3a4b2a Author: Fabian Thies <git@fabian-thies.de> Date: Thu Dec 22 10:21:57 2022 +0100 [ADD] SwiftGen configuration and generated files commit 6952218ee716ae5284437d78606d62ca1b95ca46 Author: Fabian Thies <git@fabian-thies.de> Date: Thu Dec 22 10:10:58 2022 +0100 [ADD] Empty Localizable.strings commit 80146c1e038ce354094b56dd890d850092235bba Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 12:04:10 2023 +0100 [WIP] AppScreenshot view with ImageProcessor to automatically rotate landscape images. Possible through my fork of the AsyncImage framework. commit 642ae996c974e0b18cbdd24810cb57da6d93e39f Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 12:02:56 2023 +0100 [WIP] Fetch trusted sources in SourcesView commit 8040636aa51b2a9318e0bdd3dfed0c8a83a1fdbc Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 12:02:06 2023 +0100 [WIP] AppIDs view in My Apps section commit 731fcfaca74f49b548133163f4cf2dcdd8ecf1e0 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 12:00:00 2023 +0100 [ADD] Badge in AppDetailView for apps from the official source and (WIP) trusted sources commit 708fb3fccd8e89f59aaf8844c2d9c3a80733ca53 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 11:58:25 2023 +0100 [ADD] Hint view in MyAppsView telling the user about where to find updates in the future if no updates are available commit 9f429fb0689a13e5a0c0ca043a76ca4f1b82d365 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 11:54:44 2023 +0100 [FIX] App permission icon color commit 29fc693f4d52aece3505fb4bcb63497d5608dcb4 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Jan 13 11:51:06 2023 +0100 [ADD] Show source name and external url domain in NewsItemView commit 6f373ad3056fb154e385daadf87036062e40347a Author: Fabian Thies <git@fabian-thies.de> Date: Fri Dec 23 16:02:57 2022 +0100 [ADD] Full-screen app screenshot preview commit c069d779d976380302d876b5d21e39dd58070f14 Author: Fabian Thies <git@fabian-thies.de> Date: Fri Dec 23 15:21:16 2022 +0100 [CHANGE] Replace system image name strings with SFSymbols commit cd88970a22527899d9a368db130bb38b4fa24d5b Author: Fabian Thies <git@fabian-thies.de> Date: Fri Dec 23 13:12:39 2022 +0100 [ADD] Dependency: SFSafeSymbols commit 6b6708e43c4d6cedc003c4e6a7e996b6c3857a16 Author: Fabian Thies <git@fabian-thies.de> Date: Wed Dec 21 17:49:49 2022 +0100 [ADD] WIP: Promoted category cards and app list filter button in BrowseView commit 9206eeb9e34beb7684df3a4914e59aaa1d31cd78 Author: Fabian Thies <git@fabian-thies.de> Date: Wed Dec 21 17:48:45 2022 +0100 [FIX] AccentColor in dark mode commit 080bbb3c51ea45eb80ddf06840eb01b27749102c Author: Fabian Thies <git@fabian-thies.de> Date: Wed Dec 21 17:48:23 2022 +0100 [ADD] Carousel for SideStore-specific announcements in NewsView commit ea2c862900205cca60242ca35dc2393248f3a01c Author: Fabian Thies <git@fabian-thies.de> Date: Wed Dec 21 17:45:44 2022 +0100 [ADD] WIP: Add My Apps view with support for sideloading new apps, refreshing installed apps and much more commit 4fe72ea113e7f7ba7c9a219ce2ae28c174497160 Author: Fabian Thies <git@fabian-thies.de> Date: Mon Dec 12 19:20:54 2022 +0100 [CHANGE] Fixed the AppRowView background blur effect commit c486a62b508342250f7bb5d986df5b321bec6ffa Author: Fabian Thies <git@fabian-thies.de> Date: Mon Dec 12 19:20:10 2022 +0100 [ADD] Backported dismiss() environment variable to let views dismiss themselves commit 3ce4451da4de11ace886a5c6ea300852d9c8f41d Author: Fabian Thies <git@fabian-thies.de> Date: Mon Dec 12 19:18:57 2022 +0100 [ADD] Search bar for BrowseView on iOS 15 commit 294ba12391c40cb8ece0b2f100aefc07d63ecc7b Author: Fabian Thies <git@fabian-thies.de> Date: Mon Dec 12 19:16:36 2022 +0100 [CHANGE] Fetch news when NewsView appears commit 4a3343fe612a16de0a45362d68fa5b8eb7583dd6 Author: Fabian Thies <git@fabian-thies.de> Date: Mon Dec 12 19:15:16 2022 +0100 Improved app detail view commit d1e6ddd435cd5d2cf44eacb6f6806c47b4fc4c60 Author: Fabian Thies <git@fabian-thies.de> Date: Mon Dec 12 19:12:38 2022 +0100 [ADD] Authentication view for connecting SideStore to an Apple ID commit 3e0379dc70dd18c34648937d167b2277addd4698 Author: Fabian Thies <git@fabian-thies.de> Date: Sun Nov 27 16:41:30 2022 +0100 [WIP] Fixed the app permissions grid in AppDetailView commit d99674f8bdab6cab478a96fffebb39d0901036e5 Author: Fabian Thies <git@fabian-thies.de> Date: Sun Nov 27 16:17:08 2022 +0100 [ADD] Expandable app and version description texts commit ca7acc17daabaa60bdfaba5b23221c5b7978faee Author: Fabian Thies <git@fabian-thies.de> Date: Sun Nov 27 00:26:15 2022 +0100 [ADD] iOS 13 compatible AsyncImage implementation with cache commit 16a8bce102057e47d8204efa2d3138aab84ab424 Author: Fabian Thies <git@fabian-thies.de> Date: Wed Nov 23 22:34:02 2022 +0100 [ADD] News, Browse and Settings views ported to SwiftUI This commit contains WIP SwiftUI versions of most of the views in SideStore.
2023-05-20 11:31:00 -07:00
// swiftlint:disable all
// Generated using SwiftGen https://github.com/SwiftGen/SwiftGen
#if os(macOS)
import AppKit
#elseif os(iOS)
import UIKit
#elseif os(tvOS) || os(watchOS)
import UIKit
#endif
#if canImport(SwiftUI)
import SwiftUI
#endif
// Deprecated typealiases
@available(*, deprecated, renamed: "ColorAsset.Color", message: "This typealias will be removed in SwiftGen 7.0")
internal typealias AssetColorTypeAlias = ColorAsset.Color
@available(*, deprecated, renamed: "ImageAsset.Image", message: "This typealias will be removed in SwiftGen 7.0")
internal typealias AssetImageTypeAlias = ImageAsset.Image
// swiftlint:disable superfluous_disable_command file_length implicit_return
// MARK: - Asset Catalogs
// swiftlint:disable identifier_name line_length nesting type_body_length type_name
internal enum Asset {
internal static let back = ImageAsset(name: "Back")
internal static let betaBadge = ImageAsset(name: "BetaBadge")
internal static let accentColor = ColorAsset(name: "AccentColor")
internal static let background = ColorAsset(name: "Background")
internal static let blurTint = ColorAsset(name: "BlurTint")
internal static let settingsBackground = ColorAsset(name: "SettingsBackground")
internal static let settingsHighlighted = ColorAsset(name: "SettingsHighlighted")
internal static let honeydewImage = ImageAsset(name: "Honeydew-image")
internal static let midnightImage = ImageAsset(name: "Midnight-image")
internal static let neonImage = ImageAsset(name: "Neon-image")
internal static let next = ImageAsset(name: "Next")
internal static let skyImage = ImageAsset(name: "Sky-image")
internal static let starburstImage = ImageAsset(name: "Starburst-image")
internal static let steelImage = ImageAsset(name: "Steel-image")
internal static let stormImage = ImageAsset(name: "Storm-image")
internal static let browse = ImageAsset(name: "Browse")
internal static let myApps = ImageAsset(name: "MyApps")
internal static let news = ImageAsset(name: "News")
internal static let settings = ImageAsset(name: "Settings")
internal static let vistaImage = ImageAsset(name: "Vista-image")
}
// swiftlint:enable identifier_name line_length nesting type_body_length type_name
// MARK: - Implementation Details
internal final class ColorAsset {
internal fileprivate(set) var name: String
#if os(macOS)
internal typealias Color = NSColor
#elseif os(iOS) || os(tvOS) || os(watchOS)
internal typealias Color = UIColor
#endif
@available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, *)
internal private(set) lazy var color: Color = {
guard let color = Color(asset: self) else {
fatalError("Unable to load color asset named \(name).")
}
return color
}()
#if os(iOS) || os(tvOS)
@available(iOS 11.0, tvOS 11.0, *)
internal func color(compatibleWith traitCollection: UITraitCollection) -> Color {
let bundle = BundleToken.bundle
guard let color = Color(named: name, in: bundle, compatibleWith: traitCollection) else {
fatalError("Unable to load color asset named \(name).")
}
return color
}
#endif
#if canImport(SwiftUI)
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
internal private(set) lazy var swiftUIColor: SwiftUI.Color = {
SwiftUI.Color(asset: self)
}()
#endif
fileprivate init(name: String) {
self.name = name
}
}
internal extension ColorAsset.Color {
@available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, *)
convenience init?(asset: ColorAsset) {
let bundle = BundleToken.bundle
#if os(iOS) || os(tvOS)
self.init(named: asset.name, in: bundle, compatibleWith: nil)
#elseif os(macOS)
self.init(named: NSColor.Name(asset.name), bundle: bundle)
#elseif os(watchOS)
self.init(named: asset.name)
#endif
}
}
#if canImport(SwiftUI)
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
internal extension SwiftUI.Color {
init(asset: ColorAsset) {
let bundle = BundleToken.bundle
self.init(asset.name, bundle: bundle)
}
}
#endif
internal struct ImageAsset {
internal fileprivate(set) var name: String
#if os(macOS)
internal typealias Image = NSImage
#elseif os(iOS) || os(tvOS) || os(watchOS)
internal typealias Image = UIImage
#endif
@available(iOS 8.0, tvOS 9.0, watchOS 2.0, macOS 10.7, *)
internal var image: Image {
let bundle = BundleToken.bundle
#if os(iOS) || os(tvOS)
let image = Image(named: name, in: bundle, compatibleWith: nil)
#elseif os(macOS)
let name = NSImage.Name(self.name)
let image = (bundle == .main) ? NSImage(named: name) : bundle.image(forResource: name)
#elseif os(watchOS)
let image = Image(named: name)
#endif
guard let result = image else {
fatalError("Unable to load image asset named \(name).")
}
return result
}
#if os(iOS) || os(tvOS)
@available(iOS 8.0, tvOS 9.0, *)
internal func image(compatibleWith traitCollection: UITraitCollection) -> Image {
let bundle = BundleToken.bundle
guard let result = Image(named: name, in: bundle, compatibleWith: traitCollection) else {
fatalError("Unable to load image asset named \(name).")
}
return result
}
#endif
#if canImport(SwiftUI)
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
internal var swiftUIImage: SwiftUI.Image {
SwiftUI.Image(asset: self)
}
#endif
}
internal extension ImageAsset.Image {
@available(iOS 8.0, tvOS 9.0, watchOS 2.0, *)
@available(macOS, deprecated,
message: "This initializer is unsafe on macOS, please use the ImageAsset.image property")
convenience init?(asset: ImageAsset) {
#if os(iOS) || os(tvOS)
let bundle = BundleToken.bundle
self.init(named: asset.name, in: bundle, compatibleWith: nil)
#elseif os(macOS)
self.init(named: NSImage.Name(asset.name))
#elseif os(watchOS)
self.init(named: asset.name)
#endif
}
}
#if canImport(SwiftUI)
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, *)
internal extension SwiftUI.Image {
init(asset: ImageAsset) {
let bundle = BundleToken.bundle
self.init(asset.name, bundle: bundle)
}
init(asset: ImageAsset, label: Text) {
let bundle = BundleToken.bundle
self.init(asset.name, bundle: bundle, label: label)
}
init(decorative asset: ImageAsset) {
let bundle = BundleToken.bundle
self.init(decorative: asset.name, bundle: bundle)
}
}
#endif
// swiftlint:disable convenience_type
private final class BundleToken {
static let bundle: Bundle = {
#if SWIFT_PACKAGE
return Bundle.module
#else
return Bundle(for: BundleToken.self)
#endif
}()
}
// swiftlint:enable convenience_type