Skip to content

Commit

Permalink
Actually use string attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Domas Nutautas committed Apr 22, 2020
1 parent d6105bc commit f1791f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/TextStyle/Extensions/Attributes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import UIKit

extension TextStyle {
public var attributes: [NSAttributedString.Key: AnyObject] {
public var attributes: [NSAttributedString.Key: Any] {

var attributes = [NSAttributedString.Key: AnyObject]()
var attributes = stringAttributes

attributes[.foregroundColor] = color
attributes[.font] = font
Expand Down

0 comments on commit f1791f6

Please sign in to comment.