Include templates in the swiftlint search path. Fixed warnings.
This commit is contained in:
committed by
Stefan Ceriu
parent
abca946a23
commit
f54cde9dfe
@@ -14,6 +14,7 @@ opt_in_rules:
|
|||||||
# paths to include during linting. `--path` is ignored if present.
|
# paths to include during linting. `--path` is ignored if present.
|
||||||
included:
|
included:
|
||||||
- ElementX
|
- ElementX
|
||||||
|
- Tools/Scripts/Templates
|
||||||
|
|
||||||
line_length:
|
line_length:
|
||||||
warning: 250
|
warning: 250
|
||||||
|
|||||||
@@ -57,9 +57,9 @@ struct TemplateSimpleScreen: View {
|
|||||||
Image(systemName: context.viewState.promptType.imageSystemName)
|
Image(systemName: context.viewState.promptType.imageSystemName)
|
||||||
.resizable()
|
.resizable()
|
||||||
.scaledToFit()
|
.scaledToFit()
|
||||||
.frame(width:100)
|
.frame(width: 100)
|
||||||
|
|
||||||
HStack{
|
HStack {
|
||||||
Text("Counter: \(context.viewState.count)")
|
Text("Counter: \(context.viewState.count)")
|
||||||
|
|
||||||
Button("-") {
|
Button("-") {
|
||||||
|
|||||||
Reference in New Issue
Block a user