-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1321 from wakmusic/apply-multi-special-icons
π :: (#1320) κΈ°κ°μ λ§λ μ± μμ΄μ½ μλ λ³κ²½
- Loading branch information
Showing
7 changed files
with
54 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
Projects/App/Resources/Assets.xcassets/HalloweenAppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "HalloweenAppIcon.png", | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+226 KB
.../App/Resources/Assets.xcassets/HalloweenAppIcon.appiconset/HalloweenAppIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions
14
Projects/App/Resources/Assets.xcassets/XmasAppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "XmasAppIcon.png", | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+215 KB
Projects/App/Resources/Assets.xcassets/XmasAppIcon.appiconset/XmasAppIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 20 additions & 9 deletions
29
Projects/Features/RootFeature/Sources/ViewModels/SplashLogoType.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
// | ||
// SplashLogoType.swift | ||
// RootFeature | ||
// | ||
// Created by KTH on 10/22/24. | ||
// Copyright Β© 2024 yongbeomkwak. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import UIKit | ||
|
||
enum SplashLogoType: String { | ||
case usual = "Splash_Logo_Main" | ||
case halloween = "Splash_Logo_Halloween" | ||
case xmas = "Splash_Logo_Xmas" | ||
|
||
var icon: String? { | ||
switch self { | ||
case .usual: | ||
return nil | ||
case .halloween: | ||
return "HalloweenAppIcon" | ||
case .xmas: | ||
return "XmasAppIcon" | ||
} | ||
} | ||
} | ||
|
||
func changeAppIcon(_ type: SplashLogoType) { | ||
guard UIApplication.shared.alternateIconName != type.icon else { | ||
return | ||
} | ||
|
||
UIApplication.shared.setAlternateIconName(type.icon) | ||
} |