Skip to content

Commit

Permalink
update ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
allen committed Mar 29, 2024
1 parent 0c58763 commit f640d6c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ AEAlertViewDemo/Pods/AEAlertView/AEAlertView.swift
AEAlertViewDemo/Pods/AEAlertView/AEBaseAlertView.swift
AEAlertViewDemo/Pods/AEAlertView/AEPathAnimation.swift
AEAlertViewDemo/Pods/AEAlertView/AEUIAlertView.swift


.swiftpm
7 changes: 0 additions & 7 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

This file was deleted.

1 change: 1 addition & 0 deletions Develop-Alert/dev-alert/Classes/AEAlertView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ open class AEAlertView: UIView {
alertView = AEBaseAlertView(frame: defFrame, maximumWidth: maximumWidth)
alertView.titleLabel.text = title
alertView.messageTextView.text = message ?? ""

if style == .custom {
alertView.alertStyle = .custom
} else {
Expand Down
3 changes: 2 additions & 1 deletion Develop-Alert/dev-alert/Classes/AEBaseAlertView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ open class AEBaseAlertView: UIView {

/// 最大宽度 请在init中赋值 为了适配iPad 默认值改为320
private(set) var maximumWidth: CGFloat = 320
/// 新版本中text view 如果isScrollEnabled为true 则不能自动刷新高度,因此为了解决这个功能特意在计算高度是isScrollEnabled设置为false 当高度计算完成后在修改为true 除非你设置了false
/// 新版本中text view 如果isScrollEnabled为true 则不能自动刷新高度,因此为了解决这个功能特意在计算高度时isScrollEnabled设置为false 当高度计算完成后在修改为true 除非你设置了false
public var textViewIsScrollEnabled = true

public func dismiss() {
Expand Down Expand Up @@ -217,6 +217,7 @@ extension AEBaseAlertView {
backgroundView.addSubview(messageTextView)
messageWidthConstraints = NSLayoutConstraint.constraints(withVisualFormat: "H:|-[messageTextView]-|", options: option, metrics: nil, views: ["messageTextView": messageTextView!])
backgroundView.addConstraints(messageWidthConstraints)


contentContainerView = UIView(frame: CGRect.zero)
contentContainerView.translatesAutoresizingMaskIntoConstraints = false
Expand Down

0 comments on commit f640d6c

Please sign in to comment.