-
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 branch 'develop' into feature/추천화면-#19
- Loading branch information
Showing
27 changed files
with
513 additions
and
38 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
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
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
57 changes: 57 additions & 0 deletions
57
Projects/Core/PPACModels/Sources/Meme/MemeListWithPagination.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,57 @@ | ||
// | ||
// MemeListWithPagination.swift | ||
// PPACModels | ||
// | ||
// Created by 장혜령 on 2024/07/21. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct MemeListWithPagination { | ||
public let pagination: Pagination | ||
public let memeList: [MemeDetail] | ||
|
||
public init( | ||
pagination: Pagination, | ||
memeList: [MemeDetail] | ||
) { | ||
self.pagination = pagination | ||
self.memeList = memeList | ||
} | ||
|
||
public struct Pagination { | ||
/// 전체 페이지 개수 | ||
public let totalPages: Int | ||
/// 전체 밈 개수 | ||
public let totalMemes: Int | ||
/// page 당 밈 개수 | ||
public let perPageOfMemes: Int | ||
/// 현재 page | ||
public let currentPage: Int | ||
|
||
public init( | ||
totalPages: Int, | ||
totalMemes: Int, | ||
perPageOfMemes: Int, | ||
currentPage: Int | ||
) { | ||
self.totalPages = totalPages | ||
self.totalMemes = totalMemes | ||
self.perPageOfMemes = perPageOfMemes | ||
self.currentPage = currentPage | ||
} | ||
|
||
static public let none = Pagination(totalPages: 0, totalMemes: 0, perPageOfMemes: 0, currentPage: 0) | ||
} | ||
} | ||
|
||
public extension MemeListWithPagination { | ||
static let mock = MemeListWithPagination( | ||
pagination: Pagination( | ||
totalPages: 1, | ||
totalMemes: 5, | ||
perPageOfMemes: 5, | ||
currentPage: 1 | ||
), | ||
memeList: []) | ||
} |
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
20 changes: 20 additions & 0 deletions
20
Projects/Features/MyPage/Sources/Components/MyPagePregressView.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 @@ | ||
// | ||
// MyPagePregressView.swift | ||
// MyPage | ||
// | ||
// Created by 장혜령 on 2024/07/21. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct MyPagePregressView: View { | ||
@Binding var isRefreshCompleted: Bool | ||
var body: some View { | ||
if !isRefreshCompleted { | ||
VStack { | ||
ProgressView() | ||
.padding(.top, 80) | ||
} | ||
} | ||
} | ||
} |
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.