Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy-wonji committed Feb 16, 2023
2 parents 5630bcc + 9f3fa24 commit 0b85d72
Show file tree
Hide file tree
Showing 27 changed files with 617 additions and 317 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@

## 앱아이콘

## 앱 UI
<img src="https://user-images.githubusercontent.com/75601594/218899061-135bc416-785f-4424-a3fc-e2ec703a4798.png">

## 앱 UI
<img src="https://user-images.githubusercontent.com/75601594/218898659-94e9b871-bc09-41ee-aab0-97bcf59dde3a.png">

## 토스 코인앱은 어떤건가요??

Expand All @@ -30,8 +32,14 @@


## 팀원 소개


IOS 메인 개발: [로이](https://github.com/Roy-wonji)<br>
IOS 개발 및 PM : [성형](https://github.com/seonghyeonOrNot)<br>
IOS 개발 : [승용](https://github.com/KSYong)

## 앱스토어
## App stroe
<a href="https://apps.apple.com/us/app/%EC%BD%94%EC%9D%B8%EB%AA%A8%EC%97%AC/id1662176617" style="display: inline-block; overflow: hidden; border-radius: 13px; width: 250px; height: 83px;"><img src="https://tools.applemediaservices.com/api/badges/download-on-the-app-store/black/en-US?size=250x83&amp" alt="Download on the App Store" style="border-radius: 13px; width: 250px; height: 83px;">
</a>


## 사용한 라이브러리
Expand Down
20 changes: 10 additions & 10 deletions StockApp/Firebase/GoogleService-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@
<plist version="1.0">
<dict>
<key>CLIENT_ID</key>
<string>1060378286730-d080s67ukoj1bll1ejs0bu154mbna1j7.apps.googleusercontent.com</string>
<string>1060378286730-29djldpanil8cgbcgqnrh8dt4b751042.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.1060378286730-d080s67ukoj1bll1ejs0bu154mbna1j7</string>
<string>com.googleusercontent.apps.1060378286730-29djldpanil8cgbcgqnrh8dt4b751042</string>
<key>API_KEY</key>
<string>AIzaSyBdwoezq_Q99fpdGb5F7V-T0f24iPKCqYE</string>
<key>GCM_SENDER_ID</key>
<string>1060378286730</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>Roy.com.StockApp</string>
<string>Roy.com.CoinMoya</string>
<key>PROJECT_ID</key>
<string>coinmoya-d0b4b</string>
<key>STORAGE_BUCKET</key>
<string>coinmoya-d0b4b.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<false/>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<true/>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true/>
<true></true>
<key>IS_GCM_ENABLED</key>
<true/>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true/>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:1060378286730:ios:526ec0d6b72e4fe6c3ab73</string>
<string>1:1060378286730:ios:b461c7c0405a684bc3ab73</string>
</dict>
</plist>
</plist>
262 changes: 120 additions & 142 deletions StockApp/StockApp.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1410"
LastUpgradeVersion = "1420"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
5 changes: 0 additions & 5 deletions StockApp/StockApp/Application/StockAppApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import FirebaseCore
import FirebaseFirestore
import FirebaseAuth
import Firebase
import FirebaseAppCheck

@available(iOS 16.0, *)
@MainActor
Expand All @@ -29,10 +28,6 @@ struct StockAppApp: App {
let providerFactory = StockAppCheck()

init() {
//MARK: - 카카오 로그인 관련
// KakaoSDK.initSDK(appKey: SecretKey.kakoNativeAppKey)
//MARK: - 네비게이션 바 설정
AppCheck.setAppCheckProviderFactory(providerFactory)
FirebaseApp.configure()
UINavigationBar.appearance().largeTitleTextAttributes = [.foregroundColor: UIColor(Color.fontColor.mainFontColor)]
UINavigationBar.appearance().titleTextAttributes = [.foregroundColor : UIColor(Color.fontColor.mainFontColor),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "1.000",
"green" : "1.000",
"red" : "1.000"
"blue" : "0xFF",
"green" : "0xFF",
"red" : "0xFF"
}
},
"idiom" : "universal"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.569",
"green" : "0.400",
"red" : "0.286"
"blue" : "145",
"green" : "102",
"red" : "73"
}
},
"idiom" : "universal"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.639",
"green" : "0.471",
"red" : "0.431"
"blue" : "163",
"green" : "120",
"red" : "110"
}
},
"idiom" : "universal"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.976",
"green" : "0.961",
"red" : "0.949"
"blue" : "249",
"green" : "245",
"red" : "242"
}
},
"idiom" : "universal"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xFF",
"green" : "0xF5",
"red" : "0xF0"
"blue" : "1.000",
"green" : "0.961",
"red" : "0.941"
}
},
"idiom" : "universal"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scale" : "2x"
},
{
"filename" : "미모티콘2 5.png",
"filename" : "미모티콘2 3.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
2 changes: 1 addition & 1 deletion StockApp/StockApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>com.googleusercontent.apps.1060378286730-d080s67ukoj1bll1ejs0bu154mbna1j7</string>
<string>com.googleusercontent.apps.1060378286730-29djldpanil8cgbcgqnrh8dt4b751042</string>
</array>
</dict>
<dict>
Expand Down
4 changes: 0 additions & 4 deletions StockApp/StockApp/StockApp.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.applesignin</key>
<array>
<string>Default</string>
</array>
<key>com.apple.developer.in-app-payments</key>
<array/>
</dict>
</plist>
10 changes: 10 additions & 0 deletions StockApp/StockApp/StockAppDebug.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?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>com.apple.developer.applesignin</key>
<array>
<string>Default</string>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ struct ImagePicker: UIViewControllerRepresentable {
}

func updateUIViewController(_ uiViewController: UIViewControllerType, context: Context) {

}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,32 @@
// Created by 권승용 on 2022/12/09.
//
import FirebaseStorage
import Firebase
import UIKit

struct ImageUploader {

static func uploadImage(image: UIImage, completion: @escaping(String) -> Void) {
guard let imageData = image.jpegData(compressionQuality: 0.5) else { return }
static func uploadImage(image: UIImage, completion: @escaping(URL) -> Void) {
guard let imageData = image.jpegData(compressionQuality: 0.1) else { return }

let fileName = UUID().uuidString
let storageReference = Storage.storage().reference(withPath: "/profile_image/\(fileName)")
guard let fileName = Auth.auth().currentUser?.uid else {
debugPrint("[ERROR] : ImageUploader에서 유저 세션 nil")
return
}

let storageReference = Storage.storage().reference(withPath: "/profile_images/\(fileName)")

storageReference.putData(imageData, metadata: nil) { _, error in
if let error = error {
print("DEBUG: 프로필 이미지 업로드 실패 : \(error.localizedDescription)")
print("[ERROR] : 프로필 이미지 업로드 실패 : \(error.localizedDescription)")
}

storageReference.downloadURL { imageURL, error in
if let error = error {
print("DEBUG: URL 다운로드 실패 : \(error.localizedDescription)")
print("[ERROR] : URL 다운로드 실패 : \(error.localizedDescription)")
}

guard let imageURL = imageURL?.absoluteString else { return }
guard let imageURL = imageURL else { return }
completion(imageURL)
}
}
Expand Down
104 changes: 104 additions & 0 deletions StockApp/StockApp/View/Components/POPUP/withDrawPOPUPView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
//
// withDrawPOPUPView.swift
// StockApp
//
// Created by 서원지 on 2023/02/07.
//

import SwiftUI

struct withDrawPOPUPView: View {
var title: String
var message: String
var cancelTitle: String = "취소"
var confiremTitle: String = "확인"

@State var closedAlert: Bool = false
var confirmAction: () -> Void = {}

var body: some View {
VStack(alignment: .center) {
customAlertTitle()

Spacer()
.frame(height: 22)

alertConfirmButton()
}
.padding(EdgeInsets(top: 40, leading: 30, bottom: 31, trailing: 30))
.frame(width: ContentsWidth, height: 200)
.background(Color.colorAssets.navy2)
.cornerRadius(30.0)
.shadow(color: Color.fontColor.accentColor, radius: 6, x: 0, y: .zero)
.animation(.easeOut)
.edgesIgnoringSafeArea(.all)
}
//MARK: - 알림창 타이틀 및 메세지
@ViewBuilder
private func customAlertTitle() -> some View {
Text(title)
.kerning(-0.36)
.spoqaHan(family: .Bold, size: 18)
.foregroundColor(.white)
.frame(width: ContentsWidth - 60)

Spacer()
.frame(height: 13)

Text(message)
.kerning(-0.3)
.spoqaHan(family: .Bold, size: 18)
.foregroundColor(Color.colorAssets.white2)
.fixedSize(horizontal: false, vertical: true)
.multilineTextAlignment(.center)
.frame(width: ContentsWidth-60)
}

//MARK: - 알림 버튼 취소 확인 버튼
@ViewBuilder
private func alertConfirmButton() -> some View {
HStack {
Button {
self.closedAlert = false
} label: {
Text(cancelTitle)
.kerning(-0.34)
.spoqaHan(family: .Bold, size: 18)
.foregroundColor(Color.colorAssets.white2)
.frame(width: 140, height: 40)
.overlay(
RoundedRectangle(cornerRadius: 30)
.stroke(Color.white, lineWidth: 1)
.frame(width: 140, height: 40)
)
}
.frame(width: 140, height: 40)
// .background(Color.colorAssets.white)
.cornerRadius(30.0)
.shadow(color: Color.colorAssets.white.opacity(0.4), radius: 6, x: 0, y: 3)

Spacer()
.frame(width: 30)

Button {
confirmAction()
} label: {
Text(confiremTitle)
.kerning(-0.34)
.spoqaHan(family: .Bold, size: 18)
.foregroundColor(Color.colorAssets.subColor)
.frame(width: 140, height: 40)
}
.frame(width: 140, height: 40)
.background(Color.colorAssets.white)
.cornerRadius(30.0)
.shadow(color: Color.colorAssets.white.opacity(0.4), radius: 6, x: 0, y: 3)
}
}
}

struct withDrawPOPUPView_Previews: PreviewProvider {
static var previews: some View {
withDrawPOPUPView(title: "회원탈퇴", message: "회원탈퇴") {}
}
}
Loading

0 comments on commit 0b85d72

Please sign in to comment.