Skip to content

Commit

Permalink
Merge pull request #310 from tangem/IOS-3934-card-sdk-example-app-unu…
Browse files Browse the repository at this point in the history
…sable-layout-on-small-phones

IOS-3934 Improved example application layout on small phones
  • Loading branch information
megakoko authored Jul 26, 2023
2 parents 2147346 + d6da4af commit 4618a20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Example/TangemSdkExample/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ struct ContentView: View {
.overlay(RoundedRectangle(cornerRadius: 8)
.stroke(Color.orange, lineWidth: 2)
.padding(.horizontal, 8))
.layoutPriority(-1)

VStack(spacing: 4) {
HStack {
Expand All @@ -65,13 +66,13 @@ struct ContentView: View {
.tag(AppModel.Method.allCases[index])
}
}
.frame(minHeight: 110)
.labelsHidden()
.pickerStyle(WheelPickerStyle())

Button("Start") { model.start() }
.buttonStyle(ExampleButton(isLoading: model.isScanning))
.frame(width: 100)
.padding()

}
.padding(.horizontal, 8)
Expand Down Expand Up @@ -209,7 +210,7 @@ struct ContentView: View {
}
.autocapitalization(.none)
.disableAutocorrection(true)
.padding()
.padding(.vertical, 8)
.cornerRadius(8)
.overlay(RoundedRectangle(cornerRadius: 8)
.stroke(Color.orange, lineWidth: 2))
Expand Down

0 comments on commit 4618a20

Please sign in to comment.