Skip to content

Instantly share code, notes, and snippets.

View dmikots's full-sized avatar
👻
Focusing

Daria Mikots dmikots

👻
Focusing
  • Haier
  • Russia, Moscow
View GitHub Profile
import Foundation
import SwiftUI
// MARK: - PageViewerHostingController
final internal class PageViewerHostingController<Content>: UIHostingController<Content>
where Content: View {
// MARK: Lifecycle
@dmikots
dmikots / mew.swift
Created October 3, 2022 19:02
netw.swift
import Foundation
import SwiftUI
enum Endpoint: RawRepresentable {
init?(rawValue: String) { nil }
case editUserImage
var rawValue: String {
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
//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()
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 #")