-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: App navigational flow for deep links/push notifications (#329)
* chore: add router to deep link manager * chore: add deep link router * chore: add discussion threads * chore: program, discovery details, user profile * chore: disable animation for progress and refactor * chore: move deep link router to folder * chore: show user profile as sheet * chore: fix close presented screen * chore: not open again programs or discovery content * chore: improve deep link navigation * chore: improve deep link navigation * chore: improve deep link navigation * chore: check if ids isEmpty * chore: add open announcement * chore: improve deep link discussion * chore: remove empty line * chore: generate test files * chore: remove extra codes and add strings * chore: resolve PR commnets * chore: resolve PR comments * chore: avatar can be changed in "limited profile" mode * chore: make dashboard as default tab
- Loading branch information
1 parent
a08380e
commit 016cf09
Showing
52 changed files
with
1,611 additions
and
394 deletions.
There are no files selected for viewing
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
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.