Skip to content

Commit 0f4cc5f

Browse files
authored
feat: 알림창의 TitleLabel과 MessageLabel의 CHCR 수치 조정 (#71)
1 parent 69eff12 commit 0f4cc5f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/TSAlert/TSAlertView/DefaultAlertView/DefaultContentView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class DefaultContentView: UIStackView {
5555
titleLabel.translatesAutoresizingMaskIntoConstraints = false
5656
titleLabel.heightAnchor.constraint(greaterThanOrEqualToConstant: viewConfiguration.titleHeight ?? 0).isActive = true
5757
// Prevents the label from growing too large unnecessarily, but allows it to expand if needed.
58-
titleLabel.setContentHuggingPriority(.defaultHigh, for: .vertical)
58+
titleLabel.setContentHuggingPriority(.required, for: .vertical)
5959
// Ensures the label does not shrink too much, preventing text from being cut off.
6060
titleLabel.setContentCompressionResistancePriority(.required, for: .vertical)
6161
titleLabel.setHeight(greaterThanOrEqualTo: viewConfiguration.titleHeight ?? 0)
@@ -72,7 +72,7 @@ class DefaultContentView: UIStackView {
7272
messageLabel.translatesAutoresizingMaskIntoConstraints = false
7373
messageLabel.heightAnchor.constraint(greaterThanOrEqualToConstant: viewConfiguration.messageHeight ?? 0).isActive = true
7474
// Prevents the label from growing too large unnecessarily, but allows it to expand if needed.
75-
messageLabel.setContentHuggingPriority(.defaultHigh, for: .vertical)
75+
messageLabel.setContentHuggingPriority(.required, for: .vertical)
7676
// Ensures the label does not shrink too much, preventing text from being cut off.
7777
messageLabel.setContentCompressionResistancePriority(.required, for: .vertical)
7878
messageLabel.setHeight(greaterThanOrEqualTo: viewConfiguration.messageHeight ?? 0)

TSAlertController.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = 'TSAlertController'
19-
s.version = '1.0.0'
19+
s.version = '1.1.1'
2020
s.summary = '✨An elegant Alert library written in Swift'
2121

2222
# This description is used to generate tags and improve search results.

0 commit comments

Comments
 (0)