-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #451 from gini/IPC-110_payment-component-bank-avai…
…lable feat(GiniHealthSDK): Payment providers added to payment component IPC-97
- Loading branch information
Showing
22 changed files
with
829 additions
and
450 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
HealthSDK/GiniHealthSDK/Sources/GiniHealthSDK/Core/ButtonConfiguration.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// | ||
// ButtonConfiguration.swift | ||
// | ||
// Copyright © 2024 Gini GmbH. All rights reserved. | ||
// | ||
|
||
|
||
import UIKit | ||
|
||
public struct ButtonConfiguration { | ||
let backgroundColor: UIColor | ||
let borderColor: UIColor | ||
let titleColor: UIColor | ||
let shadowColor: UIColor | ||
let cornerRadius: CGFloat | ||
let borderWidth: CGFloat | ||
let shadowRadius: CGFloat | ||
|
||
let withBlurEffect: Bool | ||
|
||
/// Button configuration initalizer | ||
/// - Parameters: | ||
/// - backgroundColor: the button's background color | ||
/// - borderColor: the button's border color | ||
/// - titleColor: the button's title color | ||
/// - shadowColor: the button's color of the shadow | ||
/// - cornerRadius: the button's corner radius | ||
/// - borderWidth: the button's border width | ||
/// - shadowRadius: the button's shadow radius | ||
/// - withBlurEffect: adds a blur effect on the button ignoring the background color and making it translucent | ||
public init(backgroundColor: UIColor, | ||
borderColor: UIColor, | ||
titleColor: UIColor, | ||
shadowColor: UIColor, | ||
cornerRadius: CGFloat, | ||
borderWidth: CGFloat, | ||
shadowRadius: CGFloat, | ||
withBlurEffect: Bool) { | ||
self.backgroundColor = backgroundColor | ||
self.borderColor = borderColor | ||
self.titleColor = titleColor | ||
self.shadowColor = shadowColor | ||
self.cornerRadius = cornerRadius | ||
self.borderWidth = borderWidth | ||
self.shadowRadius = shadowRadius | ||
self.withBlurEffect = withBlurEffect | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
HealthSDK/GiniHealthSDK/Sources/GiniHealthSDK/Core/Extensions/String.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// String.swift | ||
// | ||
// Copyright © 2024 Gini GmbH. All rights reserved. | ||
// | ||
|
||
|
||
import UIKit | ||
|
||
extension String { | ||
func toColor() -> UIColor? { | ||
return UIColor(hex: String.rgbaHexFrom(rgbHex: self)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.