Skip to content

Commit 5bb6bb4

Browse files
committed
[Feat] Team-ShortcutsZip#526 - Add SFSymbols size extension
1 parent b83f46e commit 5bb6bb4

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

HappyAnding/HappyAnding.xcodeproj/project.pbxproj

+2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
A3C5576C292BE084003907DC /* ShareExtensionWriteShortcutView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3C5576B292BE084003907DC /* ShareExtensionWriteShortcutView.swift */; };
123123
A3D348552BD1233000DE814C /* View+Font.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3D348542BD1233000DE814C /* View+Font.swift */; };
124124
A3D348562BD1233A00DE814C /* View+Font.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3D348542BD1233000DE814C /* View+Font.swift */; };
125+
A3D348572BD140CC00DE814C /* Image+View.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9AC2BB92935D34C00165820 /* Image+View.swift */; };
125126
A3FC4747292A61550058BF26 /* FirebaseAnalytics in Frameworks */ = {isa = PBXBuildFile; productRef = A3FC4746292A61550058BF26 /* FirebaseAnalytics */; };
126127
A3FC4749292A61550058BF26 /* FirebaseAuth in Frameworks */ = {isa = PBXBuildFile; productRef = A3FC4748292A61550058BF26 /* FirebaseAuth */; };
127128
A3FC474B292A61550058BF26 /* FirebaseDatabase in Frameworks */ = {isa = PBXBuildFile; productRef = A3FC474A292A61550058BF26 /* FirebaseDatabase */; };
@@ -1153,6 +1154,7 @@
11531154
F976E85129395B350088BBA1 /* ShareExtensionViewModel.swift in Sources */,
11541155
A3FC4753292A61AE0058BF26 /* IconModalView.swift in Sources */,
11551156
4D7D16082986BBDE008B3332 /* TextLiteral.swift in Sources */,
1157+
A3D348572BD140CC00DE814C /* Image+View.swift in Sources */,
11561158
A3FC474F292A616D0058BF26 /* UIFont+Extension.swift in Sources */,
11571159
8786B2ED29A7FAFA000B46A1 /* UIColor+Extension.swift in Sources */,
11581160
A3FC475B292A61CE0058BF26 /* Category.swift in Sources */,

HappyAnding/HappyAnding/Extensions/Image+View.swift

+27
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,33 @@ import SwiftUI
99

1010
extension Image {
1111

12+
///SF Symbol
13+
func smallSF() -> some View {
14+
resizable()
15+
.scaledToFit()
16+
.frame(width: 24, height: 24)
17+
}
18+
func mediumSF() -> some View {
19+
resizable()
20+
.scaledToFit()
21+
.frame(width: 28, height: 28)
22+
}
23+
func largeSF() -> some View {
24+
resizable()
25+
.scaledToFit()
26+
.frame(width: 36, height: 36)
27+
}
28+
func extraLargeSF() -> some View {
29+
resizable()
30+
.scaledToFit()
31+
.frame(width: 46, height: 46)
32+
}
33+
func customSF(size: CGFloat) -> some View {
34+
resizable()
35+
.scaledToFit()
36+
.frame(width: size, height: size)
37+
}
38+
1239
/// Color가 gray4, size: 24, frame size가 32인 Cell을 관리하는 함수입니다.
1340
func setCellIcon() -> some View {
1441
self

0 commit comments

Comments
 (0)