-
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.
feat(GiniHealthSDK): Introduces
TextFieldConfiguration
IPC-153
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
HealthSDK/GiniHealthSDK/Sources/GiniHealthSDK/Core/TextFieldConfiguration.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,40 @@ | ||
// | ||
// TextFieldConfiguration.swift | ||
// | ||
// Copyright © 2024 Gini GmbH. All rights reserved. | ||
// | ||
|
||
|
||
import UIKit | ||
public struct TextFieldConfiguration { | ||
let backgroundColor: UIColor | ||
let borderColor: UIColor | ||
let textColor: UIColor | ||
let cornerRadius: CGFloat | ||
let borderWidth: CGFloat | ||
let placeholderForegroundColor: UIColor | ||
|
||
|
||
/// Text Field configuration initalizer | ||
/// - Parameters: | ||
/// - backgroundColor: the textField's background color | ||
/// - borderColor: the textField's border color | ||
/// - textColor: the textField's text color | ||
/// - cornerRadius: the textField's corner radius | ||
/// - borderWidth: the textField's border width | ||
/// - placeholderForegroundColor:the textField's placeholder foreground color | ||
|
||
public init(backgroundColor: UIColor, | ||
borderColor: UIColor, | ||
textColor: UIColor, | ||
cornerRadius: CGFloat, | ||
borderWidth: CGFloat, | ||
placeholderForegroundColor: UIColor) { | ||
self.backgroundColor = backgroundColor | ||
self.borderColor = borderColor | ||
self.textColor = textColor | ||
self.cornerRadius = cornerRadius | ||
self.borderWidth = borderWidth | ||
self.placeholderForegroundColor = placeholderForegroundColor | ||
} | ||
} |
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