-
Notifications
You must be signed in to change notification settings - Fork 15
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
[Feat]#13- 온보딩, 로그인 뷰 구현 #40
Merged
The head ref may contain hidden characters: "feat/#13-\uB85C\uADF8\uC778\uBDF0\uAD6C\uD604"
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
440dd3d
[Feat] #13- 온보딩 뷰 구현
devxsby a876349
[Add] #13- 로그인 뷰 클린아키텍쳐 구조
devxsby 45ea5d7
[Feat] #13- 로그인 뷰 구현
devxsby 6bb359b
[Chore] #13- CustomTextFieldView 수정
devxsby 9bc23c9
Merge branch 'develop' into feat/#13-로그인뷰구현
devxsby 263d5de
Merge branch 'develop' into feat/#13-로그인뷰구현
devxsby 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
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
26 changes: 26 additions & 0 deletions
26
SOPT-Stamp-iOS/Projects/Data/Sources/Repository/SignInRepository.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,26 @@ | ||
// | ||
// SignInRepository.swift | ||
// Presentation | ||
// | ||
// Created by devxsby on 2022/12/01. | ||
// Copyright © 2022 SOPT-Stamp-iOS. All rights reserved. | ||
// | ||
|
||
import Combine | ||
|
||
import Domain | ||
import Network | ||
|
||
public class SignInRepository { | ||
|
||
private let networkService: AuthService | ||
private let cancelBag = Set<AnyCancellable>() | ||
|
||
public init(service: AuthService) { | ||
self.networkService = service | ||
} | ||
} | ||
|
||
extension SignInRepository: SignInRepositoryInterface { | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
SOPT-Stamp-iOS/Projects/Data/Sources/Transform/SignInTransform.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,19 @@ | ||
// | ||
// SignInTransform.swift | ||
// Presentation | ||
// | ||
// Created by devxsby on 2022/12/01. | ||
// Copyright © 2022 SOPT-Stamp-iOS. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
import Domain | ||
import Network | ||
|
||
extension SignInEntity { | ||
|
||
public func toDomain() -> SignInModel { | ||
return SignInModel.init() | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
SOPT-Stamp-iOS/Projects/Domain/Sources/Model/OnboardingDataModel.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,20 @@ | ||
// | ||
// OnboardingDataModel.swift | ||
// Domain | ||
// | ||
// Created by devxsby on 2022/12/01. | ||
// Copyright © 2022 SOPT-Stamp-iOS. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
public struct OnboardingDataModel { | ||
public var image: UIImage | ||
public var title, caption: String | ||
|
||
public init(image: UIImage, title: String, caption: String) { | ||
self.image = image | ||
self.title = title | ||
self.caption = caption | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
SOPT-Stamp-iOS/Projects/Domain/Sources/Model/SignInModel.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,16 @@ | ||
// | ||
// SignInModel.swift | ||
// Presentation | ||
// | ||
// Created by devxsby on 2022/12/01. | ||
// Copyright © 2022 SOPT-Stamp-iOS. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct SignInModel { | ||
|
||
public init() { | ||
|
||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
SOPT-Stamp-iOS/Projects/Domain/Sources/RepositoryInterface/SignInRepositoryInterface.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,13 @@ | ||
// | ||
// SignInRepositoryInterface.swift | ||
// Presentation | ||
// | ||
// Created by devxsby on 2022/12/01. | ||
// Copyright © 2022 SOPT-Stamp-iOS. All rights reserved. | ||
// | ||
|
||
import Combine | ||
|
||
public protocol SignInRepositoryInterface { | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
SOPT-Stamp-iOS/Projects/Domain/Sources/UseCase/SignInUseCase.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,27 @@ | ||
// | ||
// SignInUseCase.swift | ||
// Presentation | ||
// | ||
// Created by devxsby on 2022/12/01. | ||
// Copyright © 2022 SOPT-Stamp-iOS. All rights reserved. | ||
// | ||
|
||
import Combine | ||
|
||
public protocol SignInUseCase { | ||
|
||
} | ||
|
||
public class DefaultSignInUseCase { | ||
|
||
private let repository: SignInRepositoryInterface | ||
private var cancelBag = Set<AnyCancellable>() | ||
|
||
public init(repository: SignInRepositoryInterface) { | ||
self.repository = repository | ||
} | ||
} | ||
|
||
extension DefaultSignInUseCase: SignInUseCase { | ||
|
||
} |
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 |
---|---|---|
|
@@ -320,6 +320,7 @@ extension CustomTextFieldView { | |
textField.backgroundColor = .clear | ||
textField.textColor = .black | ||
textField.font = UIFont.caption1 | ||
textField.returnKeyType = .done | ||
|
||
alertlabel.font = UIFont.caption3 | ||
alertlabel.textColor = SoptampColor.error300.color | ||
|
@@ -477,6 +478,11 @@ extension CustomTextFieldView: UITextFieldDelegate { | |
self.setTextFieldViewState(.editing) | ||
} | ||
} | ||
|
||
public func textFieldShouldReturn(_ textField: UITextField) -> Bool { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍👍 |
||
textField.resignFirstResponder() | ||
return true | ||
} | ||
} | ||
|
||
// MARK: - CustomTextFieldViewAlertDelegate | ||
|
13 changes: 13 additions & 0 deletions
13
SOPT-Stamp-iOS/Projects/Modules/Network/Sources/Entity/SignInEntity.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,13 @@ | ||
// | ||
// SignInEntity.swift | ||
// Presentation | ||
// | ||
// Created by devxsby on 2022/12/01. | ||
// Copyright © 2022 SOPT-Stamp-iOS. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct SignInEntity { | ||
|
||
} |
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.
CancelBag으로 통일하면 좋을 것 같아요~!