@@ -207,7 +207,8 @@
Loading
207 207
        titleEdgeInsets = UIEdgeInsets(top: 0.0, left: -imageSize.width, bottom: titleOffset, right: 0.0)
208 208
209 209
        let imageOffset = -(titleSize.height + spacing)
210 -
        imageEdgeInsets = UIEdgeInsets(top: imageOffset, left: 0.0, bottom: 0.0, right: -titleSize.width)
210 +
        let horizontalOffset = (bounds.width - imageSize.width) / 2
211 +
        imageEdgeInsets = UIEdgeInsets(top: imageOffset, left: horizontalOffset, bottom: 0.0, right: horizontalOffset)
211 212
212 213
        let verticalInsets = (min(imageSize.height, titleSize.height) + spacing) / 2
213 214
        contentEdgeInsets = UIEdgeInsets(top: verticalInsets, left: 0.0, bottom: verticalInsets, right: 0.0)
@@ -229,7 +230,8 @@
Loading
229 230
        titleEdgeInsets = UIEdgeInsets(top: titleOffset, left: -imageSize.width, bottom: 0.0, right: 0.0)
230 231
231 232
        let imageOffset = -(titleSize.height + spacing)
232 -
        imageEdgeInsets = UIEdgeInsets(top: 0.0, left: 0.0, bottom: imageOffset, right: -titleSize.width)
233 +
        let horizontalOffset = (bounds.width - imageSize.width) / 2
234 +
        imageEdgeInsets = UIEdgeInsets(top: 0.0, left: horizontalOffset, bottom: imageOffset, right: horizontalOffset)
233 235
234 236
        let verticalInsets = (min(imageSize.height, titleSize.height) + spacing) / 2
235 237
        contentEdgeInsets = UIEdgeInsets(top: verticalInsets, left: 0.0, bottom: verticalInsets, right: 0.0)
Files Coverage
Sources/SwifterSwift 92.88%
Project Totals (100 files) 92.88%
1
codecov:
2
  token: 9c92b00a-43e8-4dd3-b455-196052f16f86
3

4
coverage:
5
  precision: 2
6
  round: down
7
  range: 70...100
8

9
  status:
10
    project: true
11
    patch: true
12
    changes: true
13

14
  ignore:
15
    - "Sources/SwifterSwift/Deprecated/*"
16
    - "Sources/SwifterSwift/*/Deprecated/*"
17
    - "Tests/**/*"
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading