@@ -14,15 +14,13 @@
Loading
14 14
15 15
    /// SwifterSwift: Scroll to the bottom of text view
16 16
    func scrollToBottom() {
17 -
        // swiftlint:disable:next legacy_constructor
18 -
        let range = NSMakeRange((text as NSString).length - 1, 1)
17 +
        let range = NSRange(location: (text as NSString).length - 1, length: 1)
19 18
        scrollRangeToVisible(range)
20 19
    }
21 20
22 21
    /// SwifterSwift: Scroll to the top of text view
23 22
    func scrollToTop() {
24 -
        // swiftlint:disable:next legacy_constructor
25 -
        let range = NSMakeRange(0, 1)
23 +
        let range = NSRange(location: 0, length: 1)
26 24
        scrollRangeToVisible(range)
27 25
    }
28 26

@@ -16,6 +16,7 @@
Loading
16 16
    ///   - animated: set true to animate presentation of alert controller (default is true).
17 17
    ///   - vibrate: set true to vibrate the device while presenting the alert (default is false).
18 18
    ///   - completion: an optional completion handler to be called after presenting alert controller (default is nil).
19 +
    @available(iOSApplicationExtension, unavailable)
19 20
    func show(animated: Bool = true, vibrate: Bool = false, completion: (() -> Void)? = nil) {
20 21
        #if targetEnvironment(macCatalyst)
21 22
        let window = UIApplication.shared.windows.last
Files Coverage
Sources/SwifterSwift 92.87%
Project Totals (100 files) 92.87%
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