mirror of
https://github.com/twofas/2fas-ios.git
synced 2024-11-25 11:50:24 +01:00
[TF-1623] Add offset for appleWatch image
This commit is contained in:
parent
bc8562e56b
commit
65df0b782b
@ -29,6 +29,7 @@ struct AppleWatchInstallationStep: Hashable, Identifiable {
|
|||||||
struct AppleWatchView<Presenter: AppleWatchPresenting>: View {
|
struct AppleWatchView<Presenter: AppleWatchPresenting>: View {
|
||||||
private let spacing: CGFloat = Theme.Metrics.doubleSpacing
|
private let spacing: CGFloat = Theme.Metrics.doubleSpacing
|
||||||
private let presenter: Presenter
|
private let presenter: Presenter
|
||||||
|
private let appleWatchImageXOffset: CGFloat = 10
|
||||||
|
|
||||||
init(presenter: Presenter) {
|
init(presenter: Presenter) {
|
||||||
self.presenter = presenter
|
self.presenter = presenter
|
||||||
@ -39,6 +40,7 @@ struct AppleWatchView<Presenter: AppleWatchPresenting>: View {
|
|||||||
Image(uiImage: Asset.appleWatch.image)
|
Image(uiImage: Asset.appleWatch.image)
|
||||||
.renderingMode(.original)
|
.renderingMode(.original)
|
||||||
.padding(.top, Theme.Metrics.standardSpacing)
|
.padding(.top, Theme.Metrics.standardSpacing)
|
||||||
|
.offset(x: appleWatchImageXOffset)
|
||||||
|
|
||||||
Text(T.AppleWatch.installationInfoTitle)
|
Text(T.AppleWatch.installationInfoTitle)
|
||||||
.font(Font(Theme.Fonts.Text.title))
|
.font(Font(Theme.Fonts.Text.title))
|
||||||
|
Loading…
Reference in New Issue
Block a user