Skip to content

Commit

Permalink
Merge pull request #468 from gini/documentation_insurance
Browse files Browse the repository at this point in the history
Documentation insurance
  • Loading branch information
zladzeyka authored Mar 27, 2024
2 parents d911d3b + 8122ef5 commit 95b1c7f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,21 +118,6 @@ public final class GiniHealthConfiguration: NSObject {
borderWidth: 1.0,
placeholderForegroundColor: GiniColor(lightModeColor: UIColor.GiniHealthColors.dark4,
darkModeColor: UIColor.GiniHealthColors.light4).uiColor())

/**
Sets the color of the loading indicator to the specified color.
*/
@objc public var loadingIndicatorColor = GiniColor(lightModeColor: .orange, darkModeColor: .orange)

/**
Sets the style of the loading indicator.
*/
@objc public var loadingIndicatorStyle: UIActivityIndicatorView.Style = .whiteLarge

/**
Sets the scale of the loading indicator.
*/
@objc public var loadingIndicatorScale: CGFloat = 1.0

/**
Set dictionary of fonts for available text styles. Used internally.
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
*/

public struct PaymentInfo {
public var recipient,iban: String
public var recipient, iban: String
public var bic: String
public var amount, purpose: String
public var paymentUniversalLink: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ public final class PaymentReviewViewController: UIViewController, UIGestureRecog
DispatchQueue.main.async { [weak self] in
let isLoading = self?.model?.isImagesLoading ?? false
if isLoading {
self?.collectionView.showLoading(style: self?.giniHealthConfiguration.loadingIndicatorStyle, color: UIColor.from(giniColor: self?.giniHealthConfiguration.loadingIndicatorColor ?? GiniHealthConfiguration.shared.loadingIndicatorColor), scale: self?.giniHealthConfiguration.loadingIndicatorScale)
self?.collectionView.showLoading(style: .whiteLarge,
color: UIColor.GiniHealthColors.accent1,
scale: Constants.loadingIndicatorScale)
} else {
self?.collectionView.stopLoading()
}
Expand All @@ -118,7 +120,15 @@ public final class PaymentReviewViewController: UIViewController, UIGestureRecog
DispatchQueue.main.async { [weak self] in
let isLoading = self?.model?.isLoading ?? false
if isLoading {
self?.view.showLoading(style: self?.giniHealthConfiguration.loadingIndicatorStyle, color: UIColor.from(giniColor: self?.giniHealthConfiguration.loadingIndicatorColor ?? GiniHealthConfiguration.shared.loadingIndicatorColor), scale: self?.giniHealthConfiguration.loadingIndicatorScale)
if #available(iOS 13.0, *) {
self?.view.showLoading(style: Constants.loadingIndicatorStyle,
color: UIColor.GiniHealthColors.accent1,
scale: Constants.loadingIndicatorScale)
} else {
self?.view.showLoading(style: .whiteLarge,
color: UIColor.GiniHealthColors.accent1,
scale: Constants.loadingIndicatorScale)
}
} else {
self?.view.stopLoading()
}
Expand Down Expand Up @@ -808,5 +818,8 @@ extension PaymentReviewViewController {
static let heightPageControl = 20.0
static let heightToolbar = 40.0
static let bottomPaddingPageImageView = 20.0
static let loadingIndicatorScale = 1.0
@available(iOS 13.0, *)
static let loadingIndicatorStyle = UIActivityIndicatorView.Style.large
}
}

0 comments on commit 95b1c7f

Please sign in to comment.