Skip to content

Commit

Permalink
Merge pull request #6 from wacumov/main
Browse files Browse the repository at this point in the history
Add public initializer to TextSet
  • Loading branch information
NuPlay authored Feb 14, 2022
2 parents 99c98e3 + 8445b48 commit ec93d3d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/ExpandableText/Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ public struct TextSet {
var text: String
var font: Font
var color: Color

public init(text: String, font: Font, color: Color) {
self.text = text
self.font = font
self.color = color
}
}

func fontToUIFont(font: Font) -> UIFont {
Expand Down

0 comments on commit ec93d3d

Please sign in to comment.