-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
로그인 - 온보딩 쪽 디자인 & 기능 완성 #91
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
3f522ff
refactor #87: 로그인 뷰 디자인 변경
enebin 54d9dae
refactor #88: 개인정보 등록 뷰 디자인 변경
enebin 2ce9cb2
refactor #87: 루트뷰 로직 개선
enebin 873edaf
refactor #87: 루트뷰 로직 및 푸시토큰 등록 개선
enebin 2a62396
refactor #87: 마이페이지 APi 호출 로직 개선
enebin 8f2488f
refactor #87: 루트뷰 애니메이션 개선
enebin 63c0c27
refactor #87: 햅틱 개선
enebin 05dad48
fix #88: 닉네임 로직 버그 수정
enebin 7f4977e
refactor #87: 약관 수정
enebin f499971
refactor #87: 카카오 로그인 세팅
enebin b3b93be
refactor #87: xcconfig 세팅
enebin e983ace
feature #89: 마이페이지에 포토/설정 버튼 추가
enebin a5a6e54
feature #89: 마이페이지에 설정 네비게이션 로직 추가
enebin 1ad62f2
feature #89: 네비게이션 바 커스텀
enebin 3ab0e46
fix #89: 홈 뷰 애니메이션 버그 수정
enebin 3771f8a
fix #89: 웹뷰 헤더 토큰 추가
enebin 0706617
fix #89: 스택 오버플로우 버그 수정
enebin 07be2dd
feature #89: 루트뷰에서 로그아웃 액션 수신
enebin fa42493
refactor #89: 루트뷰를 스위치스토어로 변경
enebin c80e875
refactor #89: 백그라운드 블러 로직 변경
enebin e875ec1
Merge branch 'refactor/루트뷰-통한의-리팩토링' into feature/setting-view(#89)
enebin 9197ccf
refactor #89: 파일 이름 변경
enebin 9563edd
refactor #89: 액션 이름 변경
enebin 88ddca0
feature #89: 푸시알림 관리를 위한 매니저 클래스 추가
enebin d0ae5d6
feature #89: 푸시알림 등록 로직 수정
enebin c5beda8
refactor #89: 설정 진입 네비게이션 로직 개선
enebin f133d2b
refactor #89: 코드 개선
enebin ea19516
refactor #89: 웹 뷰 로딩속도 개선
enebin 6f15114
refactor #89: 홈에서 테스트 진입 UX 개선
enebin ae04e23
feature #89: 권한 관련 에러처리 및 `alert` 추가
enebin f750031
chore #89: 코드린트
enebin 6662b61
Merge pull request #92 from Nexters/feature/setting-view(#89)
enebin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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
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
This file was deleted.
Oops, something went wrong.
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,46 @@ | ||
// | ||
// TCA+.swift | ||
// Core | ||
// | ||
// Created by Young Bin on 2023/09/03. | ||
// Copyright © 2023 team.humanwave. All rights reserved. | ||
// | ||
|
||
import ComposableArchitecture | ||
|
||
private final class Ref<T: Equatable>: Equatable { | ||
var val: T | ||
init(_ v: T) { | ||
self.val = v | ||
} | ||
|
||
static func == (lhs: Ref<T>, rhs: Ref<T>) -> Bool { | ||
lhs.val == rhs.val | ||
} | ||
} | ||
|
||
/// 스택 오버플로우 방지용 래퍼 | ||
/// 참고: https://github.com/pointfreeco/swift-composable-architecture/discussions/488 | ||
@propertyWrapper | ||
public struct Box<T: Equatable>: Equatable { | ||
private var ref: Ref<T> | ||
|
||
public init(_ x: T) { | ||
self.ref = Ref(x) | ||
} | ||
|
||
public var wrappedValue: T { | ||
get { ref.val } | ||
set { | ||
if !isKnownUniquelyReferenced(&ref) { | ||
ref = Ref(newValue) | ||
return | ||
} | ||
ref.val = newValue | ||
} | ||
} | ||
|
||
public var projectedValue: Box<T> { | ||
self | ||
} | ||
} |
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
22 changes: 22 additions & 0 deletions
22
Projects/Core/Sources/Utility/UI/TextField/TextFieldPlaceholder.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,22 @@ | ||
// | ||
// TextFieldPlaceholder.swift | ||
// Core | ||
// | ||
// Created by 이영빈 on 2023/08/31. | ||
// Copyright © 2023 team.humanwave. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
|
||
public extension View { | ||
func placeholder<Content: View>( | ||
when shouldShow: Bool, | ||
alignment: Alignment = .leading, | ||
@ViewBuilder placeholder: () -> Content | ||
) -> some View { | ||
ZStack(alignment: alignment) { | ||
placeholder().opacity(shouldShow ? 1 : 0) | ||
self | ||
} | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
Projects/Core/Sources/Utility/UI/WebView/WebViewWarmUper.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,68 @@ | ||
// https://github.com/bernikovich/WebViewWarmUper | ||
// | ||
// Created by Timur Bernikovich on 07/03/2019. | ||
// Copyright © 2019 Timur Bernikovich. All rights reserved. | ||
// | ||
|
||
import WebKit | ||
import UIKit | ||
|
||
public protocol WarmUpable { | ||
func warmUp() | ||
} | ||
|
||
public class WarmUper<Object: WarmUpable> { | ||
|
||
private let creationClosure: () -> Object | ||
private var warmedUpObjects: [Object] = [] | ||
public var numberOfWamedUpObjects: Int = 2 { | ||
didSet { | ||
prepare() | ||
} | ||
} | ||
|
||
public init(creationClosure: @escaping () -> Object) { | ||
self.creationClosure = creationClosure | ||
prepare() | ||
} | ||
|
||
public func prepare() { | ||
while warmedUpObjects.count < numberOfWamedUpObjects { | ||
let object = creationClosure() | ||
object.warmUp() | ||
warmedUpObjects.append(object) | ||
} | ||
} | ||
|
||
private func createObjectAndWarmUp() -> Object { | ||
let object = creationClosure() | ||
object.warmUp() | ||
return object | ||
} | ||
|
||
public func dequeue() -> Object { | ||
let warmedUpObject: Object | ||
if let object = warmedUpObjects.first { | ||
warmedUpObjects.removeFirst() | ||
warmedUpObject = object | ||
} else { | ||
warmedUpObject = createObjectAndWarmUp() | ||
} | ||
prepare() | ||
return warmedUpObject | ||
} | ||
|
||
} | ||
|
||
extension WKWebView: WarmUpable { | ||
public func warmUp() { | ||
loadHTMLString("", baseURL: nil) | ||
} | ||
} | ||
|
||
public typealias WKWebViewWarmUper = WarmUper<WKWebView> | ||
public extension WarmUper where Object == WKWebView { | ||
static let shared = WKWebViewWarmUper(creationClosure: { | ||
WKWebView(frame: .zero, configuration: WKWebViewConfiguration()) | ||
}) | ||
} |
23 changes: 23 additions & 0 deletions
23
Projects/DSKit/Resources/Image.xcassets/photo_export.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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "photo_export.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.03 KB
Projects/DSKit/Resources/Image.xcassets/photo_export.imageset/photo_export.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.09 KB
Projects/DSKit/Resources/Image.xcassets/photo_export.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.35 KB
Projects/DSKit/Resources/Image.xcassets/photo_export.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
Projects/DSKit/Resources/Image.xcassets/setting.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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "setting.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+530 Bytes
Projects/DSKit/Resources/Image.xcassets/setting.imageset/setting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.02 KB
Projects/DSKit/Resources/Image.xcassets/setting.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.53 KB
Projects/DSKit/Resources/Image.xcassets/setting.imageset/[email protected]
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
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ㅋㅋㅋㅋㅋㅋㅋㅋ 붕 기엽네 ㅋㅋㅋㅋㅋ