-
Notifications
You must be signed in to change notification settings - Fork 0
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 #40 from Student-Center/feature/WEAV-118
[WEAV-118] 홈 메인 뷰 - 프로필 탭 구현
- Loading branch information
Showing
34 changed files
with
1,114 additions
and
65 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// Int+Ext.swift | ||
// CoreKit | ||
// | ||
// Created by 김지수 on 11/3/24. | ||
// Copyright © 2024 com.weave. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
extension Int { | ||
public func toString() -> String { | ||
return String(self) | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/Profile/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,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
.../DesignCore/Resources/Images/Images.xcassets/Profile/building_fill.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" : "building_fill.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "building_fill@2x.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "building_fill@3x.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+408 Bytes
...sources/Images/Images.xcassets/Profile/building_fill.imageset/building_fill.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
+499 Bytes
...rces/Images/Images.xcassets/Profile/building_fill.imageset/building_fill@2x.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
+417 Bytes
...rces/Images/Images.xcassets/Profile/building_fill.imageset/building_fill@3x.png
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
.../DesignCore/Resources/Images/Images.xcassets/Profile/business_fill.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" : "business_fill.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "business_fill@2x.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "business_fill@3x.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+460 Bytes
...sources/Images/Images.xcassets/Profile/business_fill.imageset/business_fill.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
+644 Bytes
...rces/Images/Images.xcassets/Profile/business_fill.imageset/business_fill@2x.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
+871 Bytes
...rces/Images/Images.xcassets/Profile/business_fill.imageset/business_fill@3x.png
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
.../DesignCore/Resources/Images/Images.xcassets/Profile/location_fill.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" : "location_fill.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "location_fill@2x.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "location_fill@3x.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+444 Bytes
...sources/Images/Images.xcassets/Profile/location_fill.imageset/location_fill.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
+836 Bytes
...rces/Images/Images.xcassets/Profile/location_fill.imageset/location_fill@2x.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.11 KB
...rces/Images/Images.xcassets/Profile/location_fill.imageset/location_fill@3x.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
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
72 changes: 72 additions & 0 deletions
72
Projects/Features/Home/Sources/HomeMain/HomeMainIntent.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,72 @@ | ||
// | ||
// HomeMainIntent.swift | ||
// DesignPreview | ||
// | ||
// Created by 김지수 on 11/2/24. | ||
// Copyright © 2024 com.weave. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import CommonKit | ||
import CoreKit | ||
import Model | ||
import NetworkKit | ||
|
||
//MARK: - Intent | ||
class HomeMainIntent { | ||
private weak var model: HomeMainModelActionable? | ||
private let input: DataModel | ||
private let authService: AuthServiceProtocol | ||
|
||
// MARK: Life cycle | ||
init( | ||
model: HomeMainModelActionable, | ||
input: DataModel, | ||
service: AuthServiceProtocol = AuthService.shared | ||
) { | ||
self.input = input | ||
self.model = model | ||
self.authService = service | ||
} | ||
} | ||
|
||
//MARK: - Intentable | ||
extension HomeMainIntent { | ||
protocol Intentable { | ||
// content | ||
func onTapTab(_ tab: HomeMainTab) | ||
func onTapNextButton() | ||
|
||
// default | ||
func onAppear() | ||
func task() async | ||
} | ||
|
||
struct DataModel { | ||
let userInfo: UserInfo? | ||
} | ||
} | ||
|
||
//MARK: - Intentable | ||
extension HomeMainIntent: HomeMainIntent.Intentable { | ||
// default | ||
func onTapTab(_ tab: HomeMainTab) { | ||
model?.setSelectedTab(tab: tab) | ||
} | ||
func onAppear() { | ||
Task { | ||
if let userInfo = input.userInfo { | ||
model?.setUserInfo(userInfo: userInfo) | ||
} else { | ||
let userInfo = try await authService.requestMyUserInfo() | ||
AppCoordinator.shared.userInfo = userInfo | ||
model?.setUserInfo(userInfo: userInfo) | ||
} | ||
} | ||
} | ||
|
||
func task() async {} | ||
|
||
// content | ||
func onTapNextButton() {} | ||
} |
Oops, something went wrong.