Skip to content

Commit

Permalink
[Add] #6 - (Reusables) TitleLabel, SubtitleLabel, ContentLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
yurim830 committed Oct 22, 2024
1 parent 00d03f9 commit 1ee012b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
16 changes: 8 additions & 8 deletions 35-seminar/Presentation/Week2/Reusables/ContentLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
import UIKit

class ContentLabel: UILabel {

/*
// Only override draw() if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
override func draw(_ rect: CGRect) {
// Drawing code

override init(frame: CGRect) {
super.init(frame: frame)
self.configureLabel(color: .label, size: 16, weight: .regular)
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
*/

}
16 changes: 8 additions & 8 deletions 35-seminar/Presentation/Week2/Reusables/SubtitleLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
import UIKit

class SubtitleLabel: UILabel {

/*
// Only override draw() if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
override func draw(_ rect: CGRect) {
// Drawing code

override init(frame: CGRect) {
super.init(frame: frame)
self.configureLabel(color: .secondaryLabel, size: 16, weight: .regular)
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
*/

}
16 changes: 8 additions & 8 deletions 35-seminar/Presentation/Week2/Reusables/TitleLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
import UIKit

class TitleLabel: UILabel {

/*
// Only override draw() if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
override func draw(_ rect: CGRect) {
// Drawing code

override init(frame: CGRect) {
super.init(frame: frame)
self.configureLabel(size: 22, weight: .semibold)
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
*/

}

0 comments on commit 1ee012b

Please sign in to comment.