Skip to content

Commit

Permalink
ui adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
shumbo committed Sep 16, 2024
1 parent 47e93ee commit e49d037
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Svadilfari/UI/Components/HomeListItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ struct HomeListItem: View {
var imageColor: Color = Color.accentColor

var body: some View {
HStack(spacing: 0) {
self.image.foregroundColor(self.imageColor).padding(.trailing, 8)
Label {
VStack(alignment: .leading, spacing: 4) {
Text(self.title)
.font(.body)
Text(self.description).font(.caption).foregroundColor(.secondary)
}
Spacer()
}.listRowInsets(Self.listRowInsets)
} icon: {
self.image.foregroundColor(self.imageColor)
}
}
}

Expand Down
3 changes: 2 additions & 1 deletion SvadilfariTests/UserDefaultsTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ class UserDefaultsTest: XCTestCase {
func testDefault() throws {
UserDefaults.setInitialData(defaults: self.ud)
XCTAssertEqual(self.ud.isFirstLaunch, true)
XCTAssertEqual(self.ud.icloudSyncEnabled, true)
XCTAssertEqual(self.ud.icloudSyncEnabled, false)
}

func testAlreadyLaunched() throws {
self.ud.isFirstLaunch = false
UserDefaults.setInitialData(defaults: self.ud)
XCTAssertEqual(self.ud.isFirstLaunch, false)
XCTAssertEqual(self.ud.icloudSyncEnabled, false)
}

Expand Down

0 comments on commit e49d037

Please sign in to comment.