Skip to content

Commit

Permalink
[Fix/#122] 이미지 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HELLOHIDI committed Nov 29, 2024
1 parent 672cf66 commit 1807387
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 9 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,20 @@
ReferencedContainer = "container:Projects/HMHModules/HMHDeviceActivityReport/HMHDeviceActivityReport.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D1CE16B2FFB7DF723CED96D2"
BuildableName = "HMHModuleDependency.framework"
BlueprintName = "HMHModuleDependency"
ReferencedContainer = "container:Projects/HMHModules/HMHModuleDependency/HMHModuleDependency.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ struct MyPageButton: View {
var body: some View {
ZStack {
HStack() {
if let image = buttonType.imageName {
Image(image)
if let image = buttonType.image {
Image(uiImage: image)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 24, height: 24)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@ enum MyPageButtonType {
}
}

var imageName: String? {
var image: UIImage? {
switch self {
case .travel:
return "map"
return DSKitAsset.map.image
case .market:
return "market"
return DSKitAsset.market.image
case .term, .info:
return nil
}
}

var clickAction: Void {
switch self {
case .travel:
let url = URL(string: StringLiteral.MyPageURL.term)!
UIApplication.shared.open(url)
case .market:
case .info:
let url = URL(string: StringLiteral.MyPageURL.info)!
UIApplication.shared.open(url)
case .term:
let url = URL(string: StringLiteral.MyPageURL.term)!
UIApplication.shared.open(url)
default:
break
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

0 comments on commit 1807387

Please sign in to comment.