-
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 feat/expandable_sections_detail_course
# Conflicts: # Core/Core/Configuration/Config/FeaturesConfig.swift # Course/Course/Presentation/Outline/CourseOutlineView.swift
- Loading branch information
Showing
161 changed files
with
3,028 additions
and
445 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
66 changes: 66 additions & 0 deletions
66
Authorization/Authorization/Presentation/Startup/LogistrationBottomView.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,66 @@ | ||
// | ||
// LogistrationBottomView.swift | ||
// Authorization | ||
// | ||
// Created by SaeedBashir on 10/26/23. | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
import Core | ||
import Theme | ||
|
||
public struct LogistrationBottomView: View { | ||
@ObservedObject | ||
private var viewModel: StartupViewModel | ||
|
||
@Environment(\.isHorizontal) private var isHorizontal | ||
|
||
public init(viewModel: StartupViewModel) { | ||
self.viewModel = viewModel | ||
} | ||
|
||
public var body: some View { | ||
VStack(alignment: .leading) { | ||
HStack(spacing: 24) { | ||
StyledButton(AuthLocalization.SignIn.registerBtn) { | ||
viewModel.router.showRegisterScreen() | ||
viewModel.tracksignUpClicked() | ||
} | ||
.frame(maxWidth: .infinity) | ||
|
||
StyledButton( | ||
AuthLocalization.SignIn.logInTitle, | ||
action: { viewModel.router.showLoginScreen() }, | ||
color: .white, | ||
textColor: Theme.Colors.accentColor, | ||
borderColor: Theme.Colors.textInputStroke | ||
) | ||
.frame(width: 100) | ||
} | ||
.padding(.horizontal, isHorizontal ? 0 : 0) | ||
} | ||
.padding(.horizontal, isHorizontal ? 10 : 24) | ||
} | ||
} | ||
|
||
#if DEBUG | ||
struct LogistrationBottomView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
let vm = StartupViewModel( | ||
interactor: AuthInteractor.mock, | ||
router: AuthorizationRouterMock(), | ||
analytics: AuthorizationAnalyticsMock() | ||
) | ||
LogistrationBottomView(viewModel: vm) | ||
.preferredColorScheme(.light) | ||
.previewDisplayName("StartupView Light") | ||
.loadFonts() | ||
|
||
LogistrationBottomView(viewModel: vm) | ||
.preferredColorScheme(.dark) | ||
.previewDisplayName("StartupView Dark") | ||
.loadFonts() | ||
} | ||
} | ||
#endif |
Oops, something went wrong.