Improve styles for list view items

Signed-off-by: Billy Brawner <billy@wbrawner.com>
This commit is contained in:
Billy Brawner 2019-10-07 20:55:24 -07:00
parent 1da9946ecc
commit 02ca740ad1
3 changed files with 214 additions and 6 deletions

View file

@ -112,7 +112,7 @@
endingColumnNumber = "9223372036854775807"
startingLineNumber = "221"
endingLineNumber = "221"
landmarkName = "get(_:queries:)"
landmarkName = "post(_:data:type:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
@ -192,7 +192,7 @@
endingColumnNumber = "9223372036854775807"
startingLineNumber = "162"
endingLineNumber = "162"
landmarkName = "register(username:email:password:)"
landmarkName = "getUser(id:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
@ -308,5 +308,210 @@
</Locations>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "0516FB60-1D32-4CC0-83C1-45544B2CE8A8"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Budget/Network/BudgetApiService.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "268"
endingLineNumber = "268"
landmarkName = "buildRequest(endPoint:method:data:)"
landmarkType = "7">
<Locations>
<Location
uuid = "0516FB60-1D32-4CC0-83C1-45544B2CE8A8 - 89d43db83558dbd8"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #2 (Foundation.Data, __C.NSURLResponse) throws -&gt; Foundation.Data in Budget.RequestHelper.(buildRequest in _B8D548B2032FDC977E36AA53D2287E63)&lt;A where A: Swift.Decodable, A: Swift.Encodable&gt;(endPoint: Swift.String, method: Swift.String, data: Swift.Optional&lt;Swift.Encodable&gt;) -&gt; Combine.AnyPublisher&lt;A, Budget.NetworkError&gt;"
moduleName = "Budget"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/billy/Projects/Budget/Budget/Network/BudgetApiService.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "268"
endingLineNumber = "268"
offsetFromSymbolStart = "677">
</Location>
<Location
uuid = "0516FB60-1D32-4CC0-83C1-45544B2CE8A8 - 89d43db83558dbd8"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #2 (Foundation.Data, __C.NSURLResponse) throws -&gt; Foundation.Data in Budget.RequestHelper.(buildRequest in _B8D548B2032FDC977E36AA53D2287E63)&lt;A where A: Swift.Decodable, A: Swift.Encodable&gt;(endPoint: Swift.String, method: Swift.String, data: Swift.Optional&lt;Swift.Encodable&gt;) -&gt; Combine.AnyPublisher&lt;A, Budget.NetworkError&gt;"
moduleName = "Budget"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/billy/Projects/Budget/Budget/Network/BudgetApiService.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "268"
endingLineNumber = "268"
offsetFromSymbolStart = "958">
</Location>
<Location
uuid = "0516FB60-1D32-4CC0-83C1-45544B2CE8A8 - 89d43db83558dbd8"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #2 (Foundation.Data, __C.NSURLResponse) throws -&gt; Foundation.Data in Budget.RequestHelper.(buildRequest in _B8D548B2032FDC977E36AA53D2287E63)&lt;A where A: Swift.Decodable, A: Swift.Encodable&gt;(endPoint: Swift.String, method: Swift.String, data: Swift.Optional&lt;Swift.Encodable&gt;) -&gt; Combine.AnyPublisher&lt;A, Budget.NetworkError&gt;"
moduleName = "Budget"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/billy/Projects/Budget/Budget/Network/BudgetApiService.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "268"
endingLineNumber = "268"
offsetFromSymbolStart = "1129">
</Location>
<Location
uuid = "0516FB60-1D32-4CC0-83C1-45544B2CE8A8 - 89d43db83558dbd8"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #2 (Foundation.Data, __C.NSURLResponse) throws -&gt; Foundation.Data in Budget.RequestHelper.(buildRequest in _B8D548B2032FDC977E36AA53D2287E63)&lt;A where A: Swift.Decodable, A: Swift.Encodable&gt;(endPoint: Swift.String, method: Swift.String, data: Swift.Optional&lt;Swift.Encodable&gt;) -&gt; Combine.AnyPublisher&lt;A, Budget.NetworkError&gt;"
moduleName = "Budget"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/billy/Projects/Budget/Budget/Network/BudgetApiService.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "268"
endingLineNumber = "268"
offsetFromSymbolStart = "1205">
</Location>
<Location
uuid = "0516FB60-1D32-4CC0-83C1-45544B2CE8A8 - 89d43db83558dbd8"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #2 (Foundation.Data, __C.NSURLResponse) throws -&gt; Foundation.Data in Budget.RequestHelper.(buildRequest in _B8D548B2032FDC977E36AA53D2287E63)&lt;A where A: Swift.Decodable, A: Swift.Encodable&gt;(endPoint: Swift.String, method: Swift.String, data: Swift.Optional&lt;Swift.Encodable&gt;) -&gt; Combine.AnyPublisher&lt;A, Budget.NetworkError&gt;"
moduleName = "Budget"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/billy/Projects/Budget/Budget/Network/BudgetApiService.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "268"
endingLineNumber = "268"
offsetFromSymbolStart = "1356">
</Location>
</Locations>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "BF72D15A-C1C0-4680-B81D-0358AE1F4386"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Budget/Transaction/TransactionDataStore.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "23"
endingLineNumber = "23"
landmarkName = "getTransactions(_:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "957CB8EE-61C1-4D92-B0AE-EFD7AB05C7F9"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Budget/Transaction/TransactionDataStore.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "22"
endingLineNumber = "22"
landmarkName = "getTransactions(_:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "844B66FB-1D96-4B96-977D-E57CFE289E58"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Budget/Transaction/TransactionDataStore.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "29"
endingLineNumber = "29"
landmarkName = "getTransactions(_:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "65F9A721-F245-41C0-965E-0C2C8F1B78BB"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Budget/Transaction/TransactionDataStore.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "36"
endingLineNumber = "36"
landmarkName = "getTransactions(_:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "3E0C7E0D-C15A-4C0D-991F-1F3DE54CA721"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Budget/Network/BudgetApiService.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "82"
endingLineNumber = "82"
landmarkName = "getTransactions(budgetIds:categoryIds:from:to:count:page:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "F7FA2050-95A0-4F7D-AF2A-CDAFC7AA6C1F"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Budget/Network/BudgetApiService.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "115"
endingLineNumber = "115"
landmarkName = "getCategories(budgetId:count:page:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "9E6CCFC6-FA2E-47EA-A908-CBFAF6C755B4"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Budget/Network/BudgetApiService.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "218"
endingLineNumber = "218"
landmarkName = "get(_:queries:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>

View file

@ -53,8 +53,11 @@ struct BudgetListItemView: View {
) {
VStack(alignment: .leading) {
Text(verbatim: budget.name)
.lineLimit(1)
Text(verbatim: budget.description ?? "")
.foregroundColor(.gray)
.font(.subheadline)
.lineLimit(1)
.foregroundColor(.secondary)
}
}
}

View file

@ -53,11 +53,11 @@ struct TransactionListItemView: View {
VStack(alignment: .leading) {
Text(verbatim: transaction.title)
.lineLimit(1)
.font(.system(size: 20))
.font(.headline)
Text(verbatim: transaction.date.toLocaleString())
.lineLimit(1)
.font(.system(size: 16))
.foregroundColor(.gray)
.font(.subheadline)
.foregroundColor(.secondary)
.multilineTextAlignment(.trailing)
}
Spacer()