Skip to content

Commit

Permalink
remove incompatible default tintColor
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzfelix committed Sep 28, 2023
1 parent e6074d2 commit b4ad9d2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Sources/XS2AiOS/XS2AiOS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ extension XS2AiOS {
var underlineColor: UIColor
var underlineStyle: NSUnderlineStyle

public init(textColor: UIColor = .tintColor, underlineColor: UIColor = .tintColor, underlineStyle: NSUnderlineStyle = .single) {
public init(textColor: UIColor, underlineColor: UIColor, underlineStyle: NSUnderlineStyle = .single) {
self.textColor = textColor
self.underlineColor = underlineColor
self.underlineStyle = underlineStyle
Expand Down Expand Up @@ -237,7 +237,12 @@ extension XS2AiOS {
self.errorStyle = errorStyle
self.warningStyle = warningStyle
self.infoStyle = infoStyle
self.linkStyle = LinkStyle(textColor: tintColor, underlineColor: tintColor, underlineStyle: .single)

if let linkStyle = linkStyle {
self.linkStyle = linkStyle
} else {
self.linkStyle = LinkStyle(textColor: tintColor, underlineColor: tintColor, underlineStyle: .single)
}
}
}
}

0 comments on commit b4ad9d2

Please sign in to comment.