Skip to content

Commit

Permalink
style #19: 불필요한 코드 삭제 및 컨벤션 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
k906506 authored and enebin committed Aug 21, 2023
1 parent 3b2fa09 commit fd23dfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions Projects/Features/Sources/SignIn/SignInFeature.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
//

import AuthenticationServices
import Combine
import ComposableArchitecture
import Foundation
import KakaoSDKUser
Expand All @@ -22,8 +21,6 @@ public enum SignInError: Error {
public struct SignInFeature: Reducer {
@Dependency(\.localStorage) private var localStorage

private var cancellables = Set<AnyCancellable>()

public enum State: Equatable {
case notDetermined
case loggedIn
Expand Down
4 changes: 2 additions & 2 deletions Projects/Features/Sources/SignIn/SignInView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ public struct SignInView: View {
onCompletion: { completion in
switch completion {
case .success(let response):
switch response.credential{
switch response.credential { // FIXME: 추후에 SignInFeature으로 이동
case let appleIDCredential as ASAuthorizationAppleIDCredential:
let user = appleIDCredential.user
let fullName = appleIDCredential.fullName
let name = (fullName?.familyName ?? "") + (fullName?.givenName ?? "")
let name = (fullName?.familyName ?? "") + (fullName?.givenName ?? "")
let email = appleIDCredential.email
let identifyToken = String(data: appleIDCredential.identityToken!, encoding: .utf8)
let authorizationCode = String(data: appleIDCredential.authorizationCode!, encoding: .utf8)
Expand Down

0 comments on commit fd23dfd

Please sign in to comment.