Я использую симулятор iPhone 15 Pro. >
Экран входа в систему имеет два текстовых поля: одно содержит адрес электронной почты пользователя, а другое — SecureField, которое используется для пароля.
Код для Текстовые поля:
Код: Выделить всё
TextField("Email Address", text: $userData.Email)
.frame(width: UIScreen.main.bounds.width - 100)
.textFieldStyle(.roundedBorder)
.textInputAutocapitalization(.never)
.opacity(0.8)
SecureField("Password", text: $userData.Password)
.frame(width: UIScreen.main.bounds.width - 100)
.textFieldStyle(.roundedBorder)
.opacity(0.8)
Код: Выделить всё
Error for queryMetaDataSync: 2
Error for queryMetaDataSync: 2
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"",
"",
"",
""
)
Will attempt to recover by breaking constraint
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful.
Мое внимание привлекает следующая строка:
Код: Выделить всё
""
Что мне попробовать дальше?
Подробнее здесь: https://stackoverflow.com/questions/781 ... s-in-swift
Мобильная версия