|
@@ -213,9 +213,18 @@ struct GrammarCheckerView: View {
|
|
|
|
|
|
|
|
private var correctedContentPanel: some View {
|
|
private var correctedContentPanel: some View {
|
|
|
VStack(alignment: .leading, spacing: 14) {
|
|
VStack(alignment: .leading, spacing: 14) {
|
|
|
- Text("Your Content")
|
|
|
|
|
- .font(.system(size: 18, weight: .bold))
|
|
|
|
|
- .foregroundStyle(AppTheme.textPrimary)
|
|
|
|
|
|
|
+ HStack(alignment: .center) {
|
|
|
|
|
+ Text("Your Content")
|
|
|
|
|
+ .font(.system(size: 18, weight: .bold))
|
|
|
|
|
+ .foregroundStyle(AppTheme.textPrimary)
|
|
|
|
|
+
|
|
|
|
|
+ Spacer()
|
|
|
|
|
+
|
|
|
|
|
+ ToolbarButton(title: "Copy", iconName: "doc.on.doc", compact: true) {
|
|
|
|
|
+ viewModel.copyCorrectedText()
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .frame(height: 26)
|
|
|
|
|
|
|
|
VStack(alignment: .leading, spacing: 0) {
|
|
VStack(alignment: .leading, spacing: 0) {
|
|
|
ScrollView(.vertical, showsIndicators: true) {
|
|
ScrollView(.vertical, showsIndicators: true) {
|
|
@@ -227,15 +236,6 @@ struct GrammarCheckerView: View {
|
|
|
.padding(20)
|
|
.padding(20)
|
|
|
}
|
|
}
|
|
|
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
|
|
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
|
|
|
-
|
|
|
|
|
- HStack {
|
|
|
|
|
- ToolbarButton(title: "Copy Text", iconName: "doc.on.doc") {
|
|
|
|
|
- viewModel.copyCorrectedText()
|
|
|
|
|
- }
|
|
|
|
|
- Spacer()
|
|
|
|
|
- }
|
|
|
|
|
- .padding(.horizontal, 16)
|
|
|
|
|
- .padding(.bottom, 16)
|
|
|
|
|
}
|
|
}
|
|
|
.frame(maxHeight: .infinity)
|
|
.frame(maxHeight: .infinity)
|
|
|
.background(panelBackground)
|
|
.background(panelBackground)
|
|
@@ -253,6 +253,7 @@ struct GrammarCheckerView: View {
|
|
|
Text("Grammar Report")
|
|
Text("Grammar Report")
|
|
|
.font(.system(size: 18, weight: .bold))
|
|
.font(.system(size: 18, weight: .bold))
|
|
|
.foregroundStyle(AppTheme.textPrimary)
|
|
.foregroundStyle(AppTheme.textPrimary)
|
|
|
|
|
+ .frame(height: 26, alignment: .leading)
|
|
|
|
|
|
|
|
VStack(alignment: .leading, spacing: 14) {
|
|
VStack(alignment: .leading, spacing: 14) {
|
|
|
Text(viewModel.issueCountLabel)
|
|
Text(viewModel.issueCountLabel)
|