HStack {
Button {
environment.notifyClickNext()
showActivity = true
} label: {
Text(LocalizedStringKey(Constant.continueTitle))
}
.frame(width: UIScreen.main.bounds.width - 32, height: 44)
.foregroundColor(.white)
.font(.custom(FontFamily.eUkraineRegular, size: 15.0))
.background(Color((state.nextButtonState is ButtonState.Active) ? UIColor.getColor(by: .blueDarkMain) :
UIColor.getColor(by: .black50)))
.disabled(!(state.nextButtonState is ButtonState.Active))
.cornerRadius(4)
}
.padding(16)
}
Может из-за паддинга?
Обсуждают сегодня