Откат случайно включённых изменений дизайн-системы
Предыдущий коммит случайно включил изменения из рабочей директории: упрощение GlassModifier, GlassModifiers, RosettaTabBar, ButtonStyles, GlassCard и других файлов, что сломало iOS 26 glass-эффекты и внешний вид tab bar. Восстановлены оригинальные файлы из состояния до этих изменений. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import SwiftUI
|
||||
|
||||
struct ConfirmSeedPhraseView: View {
|
||||
@Binding var seedPhrase: [String]
|
||||
let seedPhrase: [String]
|
||||
let onConfirmed: () -> Void
|
||||
let onBack: () -> Void
|
||||
|
||||
@@ -13,7 +13,6 @@ struct ConfirmSeedPhraseView: View {
|
||||
private let confirmPositions = [1, 4, 8, 11]
|
||||
|
||||
private var allCorrect: Bool {
|
||||
guard seedPhrase.count >= 12 else { return false }
|
||||
for (inputIndex, seedIndex) in confirmPositions.enumerated() {
|
||||
let input = confirmationInputs[inputIndex].lowercased().trimmingCharacters(in: .whitespaces)
|
||||
if input != seedPhrase[seedIndex].lowercased() { return false }
|
||||
@@ -25,31 +24,26 @@ struct ConfirmSeedPhraseView: View {
|
||||
VStack(spacing: 0) {
|
||||
AuthNavigationBar(onBack: onBack)
|
||||
|
||||
if seedPhrase.count >= 12 {
|
||||
ScrollView(showsIndicators: false) {
|
||||
VStack(spacing: 24) {
|
||||
headerSection
|
||||
pasteButton
|
||||
pasteSuccessMessage
|
||||
wordGrid
|
||||
errorMessage
|
||||
}
|
||||
.padding(.horizontal, 24)
|
||||
.padding(.top, 16)
|
||||
.padding(.bottom, 100)
|
||||
ScrollView(showsIndicators: false) {
|
||||
VStack(spacing: 24) {
|
||||
headerSection
|
||||
pasteButton
|
||||
pasteSuccessMessage
|
||||
wordGrid
|
||||
errorMessage
|
||||
}
|
||||
.scrollDismissesKeyboard(.interactively)
|
||||
.onTapGesture(count: 1) { focusedInputIndex = nil }
|
||||
.simultaneousGesture(TapGesture().onEnded {})
|
||||
|
||||
confirmButton
|
||||
.padding(.horizontal, 24)
|
||||
.padding(.bottom, 16)
|
||||
} else {
|
||||
Spacer()
|
||||
.padding(.horizontal, 24)
|
||||
.padding(.top, 16)
|
||||
.padding(.bottom, 100)
|
||||
}
|
||||
.scrollDismissesKeyboard(.interactively)
|
||||
.onTapGesture(count: 1) { focusedInputIndex = nil }
|
||||
.simultaneousGesture(TapGesture().onEnded {})
|
||||
|
||||
confirmButton
|
||||
.padding(.horizontal, 24)
|
||||
.padding(.bottom, 16)
|
||||
}
|
||||
.background { RosettaColors.authBackground.ignoresSafeArea() }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,7 +128,7 @@ private extension ConfirmSeedPhraseView {
|
||||
.foregroundStyle(RosettaColors.numberGray)
|
||||
.frame(width: 28, alignment: .trailing)
|
||||
|
||||
TextField("enter", text: $confirmationInputs[inputIndex])
|
||||
TextField("enter word", text: $confirmationInputs[inputIndex])
|
||||
.font(.system(size: 17, weight: .semibold, design: .monospaced))
|
||||
.foregroundStyle(.white)
|
||||
.autocorrectionDisabled()
|
||||
@@ -287,8 +281,8 @@ private extension ConfirmSeedPhraseView {
|
||||
|
||||
#Preview {
|
||||
ConfirmSeedPhraseView(
|
||||
seedPhrase: .constant(["abandon", "ability", "able", "about", "above", "absent",
|
||||
"absorb", "abstract", "absurd", "abuse", "access", "accident"]),
|
||||
seedPhrase: ["abandon", "ability", "able", "about", "above", "absent",
|
||||
"absorb", "abstract", "absurd", "abuse", "access", "accident"],
|
||||
onConfirmed: {},
|
||||
onBack: {}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user