This file contains hidden or 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
import Foundation | |
import SwiftUI | |
// MARK: - PageViewerHostingController | |
final internal class PageViewerHostingController<Content>: UIHostingController<Content> | |
where Content: View { | |
// MARK: Lifecycle |
This file contains hidden or 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
import Foundation | |
import SwiftUI | |
enum Endpoint: RawRepresentable { | |
init?(rawValue: String) { nil } | |
case editUserImage | |
var rawValue: String { |
This file contains hidden or 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
struct CustomAvatarSlider<Content: View, T: Identifiable>: View { | |
var content: (T) -> Content | |
var list: [T] | |
var spacing: CGFloat | |
var trailingSpace: CGFloat | |
@Binding var index: Int | |
init(spacing: CGFloat = 15, trailingSpace: CGFloat = 100, index: Binding<Int>, items: [T], @ViewBuilder content: @escaping (T) -> Content) { | |
self.list = items | |
self.spacing = spacing |
This file contains hidden or 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
//CellView | |
struct LeaderboardCellView: View { | |
let store: Store<LeaderboardCellState, LeaderboardCellAction> | |
var body: some View { | |
WithViewStore(self.store) { viewStore in | |
HStack(spacing: 20) { | |
HStack(spacing: 5) { | |
Image("cup") | |
.resizable() |
This file contains hidden or 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
struct PastCompetitionInfoView: View { | |
let store: Store<PastCompetitionInfoState, PastCompetitionInfoAction> | |
var body: some View { | |
WithViewStore(self.store) { viewStore in | |
ZStack { | |
Color.black.ignoresSafeArea() | |
VStack { | |
VStack(spacing: 20) { | |
Group { | |
Text("Booking #") |