Skip to content

Commit

Permalink
Fix a bug in the image list header function
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsaidi committed Dec 19, 2023
1 parent 75c8ca9 commit 2fa2896
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Release notes


## 4.1.4

This version fixes a bug in the image list header extension.



## 4.1.3

This version adds a few additional utilities.
Expand Down
6 changes: 2 additions & 4 deletions Sources/SwiftUIKit/Lists/ListHeader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public extension Image {
self.resizable()
.aspectRatio(contentMode: .fit)
.frame(height: height)
.listHeader()
}
}

Expand All @@ -106,10 +107,7 @@ public extension Image {
}
}
List {
ListHeader {
Image(systemName: "checkmark")
.font(.largeTitle)
}
Image(systemName: "checkmark").listHeader(height: 75)
Section {
Text("Item")
Text("Item")
Expand Down

0 comments on commit 2fa2896

Please sign in to comment.