-
Notifications
You must be signed in to change notification settings - Fork 1
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 #51 from School-of-Company/50-PostDetail-Publishing
🔀 :: [#50] 게시물 상세페이지 퍼블리싱
- Loading branch information
Showing
15 changed files
with
370 additions
and
47 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
Projects/App/Resources/Assets.xcassets/PostTestImage.imageset/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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "PostTestImage.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
Projects/App/Resources/Assets.xcassets/PostTestImage.imageset/PostTestImage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
Projects/App/Resources/Assets.xcassets/grayleftbutton.imageset/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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "grayleftbutton.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
Projects/App/Resources/Assets.xcassets/grayleftbutton.imageset/grayleftbutton.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
Projects/App/Resources/Assets.xcassets/grayrightbutton.imageset/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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "grayrightbutton.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...ects/App/Resources/Assets.xcassets/grayrightbutton.imageset/grayrightbutton.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
Projects/App/Resources/Assets.xcassets/testimage.imageset/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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "스크린샷 2024-11-11 오후 4.14.24.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+105 KB
...App/Resources/Assets.xcassets/testimage.imageset/스크린샷 2024-11-11 오후 4.14.24.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import SwiftUI | ||
import KakaoMapsSDK | ||
|
||
@main | ||
struct ExpoApp: App { | ||
var body: some Scene { | ||
WindowGroup { | ||
SigninView(viewModel: AuthViewModel()) | ||
PostDetailView() | ||
.onAppear { | ||
let appKey = Bundle.main.object(forInfoDictionaryKey: "KAKAO_NATIVE_APP_KEY") as? String ?? "" | ||
SDKInitializer.InitSDK(appKey: appKey) | ||
} | ||
} | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
Projects/App/Sources/DesignSystem/Button/ExpoOutLineButton.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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// | ||
// ExpoOutLineButton.swift | ||
// Expo-iOS | ||
// | ||
// Created by 서지완 on 11/11/24. | ||
// Copyright © 2024 SchoolofCompany. All rights reserved. | ||
// | ||
|
||
|
||
import SwiftUI | ||
|
||
public struct ExpoOutLineButton: View { | ||
var text: String | ||
var horizontalPadding: CGFloat | ||
var verticalPadding: CGFloat | ||
var backColor: Color | ||
var action: () -> Void | ||
|
||
@State private var isPressed = false | ||
|
||
public init( | ||
text: String, | ||
horizontalPadding: CGFloat = 16, | ||
verticalPadding: CGFloat = 8, | ||
backColor: Color, | ||
action: @escaping () -> Void = {} | ||
) { | ||
self.text = text | ||
self.horizontalPadding = horizontalPadding | ||
self.verticalPadding = verticalPadding | ||
self.backColor = backColor | ||
self.action = action | ||
} | ||
|
||
public var body: some View { | ||
Button(action: { | ||
self.action() | ||
}) { | ||
Text(text) | ||
.expoFont(.body2B) | ||
.expoColor(ExpoColor.main) | ||
.padding(.horizontal, horizontalPadding) | ||
.padding(.vertical, verticalPadding) | ||
.background( | ||
RoundedRectangle(cornerRadius: 6) | ||
.fill(backColor) | ||
) | ||
.overlay( | ||
RoundedRectangle(cornerRadius: 6) | ||
.stroke(ExpoColor.main.swiftUIColor, lineWidth: 1) | ||
) | ||
.scaleEffect(isPressed ? 0.9 : 1.0) | ||
} | ||
.buttonStyle(PlainButtonStyle()) | ||
.gesture( | ||
DragGesture(minimumDistance: 0) | ||
.onChanged { _ in self.isPressed = true } | ||
.onEnded { _ in | ||
self.isPressed = false | ||
self.action() | ||
} | ||
) | ||
} | ||
} |
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
Oops, something went wrong.