Slather logo

Coverage for "CustomWindowProvider.swift" : 100.00%

(3 of 3 relevant lines covered)

RouteComposer/Classes/Finders/Stack Iterator/CustomWindowProvider.swift

1
//
2
// RouteComposer
3
// CustomWindowProvider.swift
4
// https://github.com/ekazaev/route-composer
5
//
6
// Created by Eugene Kazaev in 2018-2022.
7
// Distributed under the MIT license.
8
//
9
// Become a sponsor:
10
// https://github.com/sponsors/ekazaev
11
//
12
13
import Foundation
14
import UIKit
15
16
/// Returns custom `UIWindow`
17
public struct CustomWindowProvider: WindowProvider {
18
19
    // MARK: Properties
20
21
    /// Returns key `UIWindow`
22
    public weak var window: UIWindow?
23
24
    // MARK: Methods
25
26
    /// Constructor
27
    public init(window: UIWindow) {
9x
28
        self.window = window
9x
29
    }
9x
30
31
}