diff --git a/GithubJobs/Helpers/ViewComponents/CustomFooterView.swift b/GithubJobs/Helpers/ViewComponents/CustomFooterView.swift index e6d61739..0eb1e32b 100644 --- a/GithubJobs/Helpers/ViewComponents/CustomFooterView.swift +++ b/GithubJobs/Helpers/ViewComponents/CustomFooterView.swift @@ -17,7 +17,7 @@ final class CustomFooterView: UIView { label.textAlignment = .center label.minimumScaleFactor = 0.5 label.adjustsFontSizeToFitWidth = true - label.font = FontHelper.dynamic(.body) + label.font = FontHelper.Dynamic.body label.adjustsFontForContentSizeCategory = true label.translatesAutoresizingMaskIntoConstraints = false return label diff --git a/GithubJobs/Scenes/JobDetail/ViewComponents/Header/JobDetailHeaderView.swift b/GithubJobs/Scenes/JobDetail/ViewComponents/Header/JobDetailHeaderView.swift index 86c4df2c..88019d2f 100644 --- a/GithubJobs/Scenes/JobDetail/ViewComponents/Header/JobDetailHeaderView.swift +++ b/GithubJobs/Scenes/JobDetail/ViewComponents/Header/JobDetailHeaderView.swift @@ -29,7 +29,7 @@ final class JobDetailHeaderView: UIView { label.setContentHuggingPriority(.required, for: .vertical) label.setContentCompressionResistancePriority(.required, for: .vertical) label.numberOfLines = 0 - label.font = FontHelper.dynamic(.body) + label.font = FontHelper.Dynamic.body label.adjustsFontForContentSizeCategory = true label.translatesAutoresizingMaskIntoConstraints = false return label diff --git a/GithubJobs/Scenes/JobDetail/ViewComponents/Section/JobDetailSectionView.swift b/GithubJobs/Scenes/JobDetail/ViewComponents/Section/JobDetailSectionView.swift index 7e302443..59f9931d 100644 --- a/GithubJobs/Scenes/JobDetail/ViewComponents/Section/JobDetailSectionView.swift +++ b/GithubJobs/Scenes/JobDetail/ViewComponents/Section/JobDetailSectionView.swift @@ -16,7 +16,7 @@ final class JobDetailSectionView: UIView { label.textAlignment = .center label.textColor = .black label.backgroundColor = .systemTeal - label.font = FontHelper.dynamic(.body) + label.font = FontHelper.Dynamic.body label.adjustsFontForContentSizeCategory = true return label diff --git a/GithubJobs/Scenes/Settings/ThemeSelection/ViewComponents/ThemeSelectionSectionHeaderView.swift b/GithubJobs/Scenes/Settings/ThemeSelection/ViewComponents/ThemeSelectionSectionHeaderView.swift index e05bd65c..300fc47b 100644 --- a/GithubJobs/Scenes/Settings/ThemeSelection/ViewComponents/ThemeSelectionSectionHeaderView.swift +++ b/GithubJobs/Scenes/Settings/ThemeSelection/ViewComponents/ThemeSelectionSectionHeaderView.swift @@ -12,7 +12,7 @@ final class ThemeSelectionSectionHeaderView: UICollectionReusableView { private lazy var titleLabel: UILabel = { let label = UILabel() label.textColor = .systemGray - label.font = .preferredFont(forTextStyle: .footnote) + label.font = FontHelper.Dynamic.footnote label.translatesAutoresizingMaskIntoConstraints = false