📝 :: Updated documentation / fix typos

This commit is contained in:
Felix Mau
2019-08-31 10:15:17 +02:00
parent 2eaa8cb5bb
commit eb9e7cd071
4 changed files with 4 additions and 3 deletions
@@ -78,6 +78,7 @@ class GradientLoadingBarViewModelTestCase: XCTestCase {
var disposeBag = DisposeBag()
// As we've just initialized the view model it has to exist at this point, and therefore we can "safely" use force-unwrapping here.
// swiftlint:disable:next force_unwrapping
viewModel!.superview.subscribe { newSuperview, _ in
guard newSuperview == nil else {
@@ -72,7 +72,7 @@ open class GradientLoadingBarController {
self.height = height
self.isRelativeToSafeArea = isRelativeToSafeArea
// We don't want the view to be visibly initially.
// We don't want the view to be visible initially.
gradientView.fadeOut(duration: 0)
bindViewModelToView()
@@ -21,7 +21,7 @@ extension UIColor {
}
extension TimeInterval {
/// Nummeric default values.
/// Numeric default values.
public struct GradientLoadingBar {
/// The default duration for fading-in the loading bar, measured in seconds.
public static let fadeInDuration = 0.33
@@ -50,7 +50,7 @@ final class GradientLoadingBarViewModel {
}
deinit {
/// By providing a custom deinitializer we make sure to remove the corresponding `gradientView` from its superview.
/// By providing a custom deinitializer we make sure to remove the gradient-view from its superview.
superviewSubject.value = nil
}