-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
89 additions
and
3 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
71 changes: 71 additions & 0 deletions
71
ios/brave-ios/Sources/Brave/Frontend/Browser/Translate/TranslateSettingsView.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,71 @@ | ||
// Copyright 2024 The Brave Authors. All rights reserved. | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
import SwiftUI | ||
|
||
struct TranslateSettingsView: View { | ||
|
||
var body: some View { | ||
NavigationStack { | ||
List { | ||
Section { | ||
NavigationLink { | ||
|
||
} label: { | ||
LabeledContent("From", value: "Selected Language") | ||
} | ||
|
||
NavigationLink { | ||
|
||
} label: { | ||
LabeledContent("To", value: "Selected Language") | ||
} | ||
} footer: { | ||
VStack { | ||
Button { | ||
|
||
} label: { | ||
Text("Translate") | ||
.font(.body.weight(.semibold)) | ||
.padding() | ||
.frame(maxWidth: .infinity) | ||
.foregroundStyle(Color(braveSystemName: .schemesOnPrimary)) | ||
.background( | ||
ContainerRelativeShape() | ||
.fill(Color(braveSystemName: .buttonBackground)) | ||
) | ||
.containerShape(RoundedRectangle(cornerRadius: 8.0, style: .continuous)) | ||
} | ||
.buttonStyle(.plain) | ||
|
||
Button { | ||
|
||
} label: { | ||
Text("Show Original") | ||
.font(.body.weight(.semibold)) | ||
.padding() | ||
.frame(maxWidth: .infinity) | ||
.foregroundStyle(Color(braveSystemName: .textSecondary)) | ||
.background( | ||
ContainerRelativeShape() | ||
.fill(Color(.clear)) | ||
) | ||
.containerShape(RoundedRectangle(cornerRadius: 8.0, style: .continuous)) | ||
} | ||
.buttonStyle(.plain) | ||
} | ||
.listRowInsets(.init()) | ||
.padding(.top) | ||
} | ||
.navigationBarTitle("Translate") | ||
.navigationBarTitleDisplayMode(.inline) | ||
} | ||
} | ||
} | ||
} | ||
|
||
#Preview { | ||
TranslateSettingsView() | ||
} |
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