-
Notifications
You must be signed in to change notification settings - Fork 18
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 fix/post-button
- Loading branch information
Showing
62 changed files
with
1,834 additions
and
562 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
46 changes: 24 additions & 22 deletions
46
Authorization/AuthorizationTests/AuthorizationMock.generated.swift
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// Sequence+Extensions.swift | ||
// Core | ||
// | ||
// Created by Eugene Yatsenko on 28.02.2024. | ||
// | ||
|
||
import Foundation | ||
|
||
public extension Sequence { | ||
func firstAs<T>(_ type: T.Type = T.self) -> T? { | ||
first { $0 is T } as? T | ||
} | ||
} |
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,51 @@ | ||
// | ||
// FullScreenProgressView.swift | ||
// Core | ||
// | ||
// Created by Eugene Yatsenko on 01.03.2024. | ||
// | ||
|
||
import SwiftUI | ||
import Theme | ||
|
||
public struct FullScreenProgressView: View { | ||
|
||
@Environment(\.dismiss) private var dismiss | ||
|
||
public init() {} | ||
|
||
public var body: some View { | ||
ZStack(alignment: .center) { | ||
Color.black.opacity(0.8) | ||
.onTapGesture { | ||
dismiss() | ||
} | ||
VStack(alignment: .center) { | ||
ProgressBar(size: 40, lineWidth: 8) | ||
.padding(.horizontal) | ||
.padding(.vertical, 50) | ||
} | ||
.frame(maxWidth: 140) | ||
.background( | ||
Theme.Shapes.cardShape | ||
.fill(Theme.Colors.cardViewBackground) | ||
.shadow(radius: 24) | ||
.fixedSize(horizontal: false, vertical: false) | ||
) | ||
.overlay( | ||
RoundedRectangle(cornerRadius: 12) | ||
.stroke( | ||
style: .init( | ||
lineWidth: 1, | ||
lineCap: .round, | ||
lineJoin: .round, | ||
miterLimit: 1 | ||
) | ||
) | ||
.foregroundColor(Theme.Colors.backgroundStroke) | ||
.fixedSize(horizontal: false, vertical: false) | ||
) | ||
} | ||
.ignoresSafeArea() | ||
} | ||
} |
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.