@@ -18,10 +18,15 @@ public class LoadMoreMessagesView: UICollectionReusableView {
18
18
label. text = OWSLocalizedString ( " CONVERSATION_VIEW_LOADING_MORE_MESSAGES " ,
19
19
comment: " Indicates that the app is loading more messages in this conversation. " )
20
20
super. init ( frame: frame)
21
- addSubview ( label)
22
- label. autoPinEdgesToSuperviewEdges ( )
23
- label. autoSetDimension ( . height, toSize: LoadMoreMessagesView . fixedHeight)
21
+ addSubview ( blurView)
22
+ blurView. contentView. addSubview ( label)
23
+
24
+ blurView. autoPinEdge ( toSuperviewEdge: . leading, withInset: 16 , relation: . greaterThanOrEqual)
25
+ blurView. autoPinEdge ( toSuperviewEdge: . trailing, withInset: 16 , relation: . greaterThanOrEqual)
26
+
27
+ label. autoPinEdgesToSuperviewEdges ( with: UIEdgeInsets ( top: 8 , left: 16 , bottom: 8 , right: 16 ) )
24
28
label. textAlignment = . center
29
+ blurView. autoCenterInSuperview ( )
25
30
}
26
31
27
32
required init ? ( coder: NSCoder ) {
@@ -32,6 +37,15 @@ public class LoadMoreMessagesView: UICollectionReusableView {
32
37
33
38
private let label = UILabel ( )
34
39
40
+ private let blurView : UIVisualEffectView = {
41
+ let blurEffect = UIBlurEffect ( style: . systemMaterial)
42
+ let view = UIVisualEffectView ( effect: blurEffect)
43
+ view. layer. cornerRadius = 16
44
+ view. clipsToBounds = true
45
+
46
+ return view
47
+ } ( )
48
+
35
49
// MARK: Public
36
50
37
51
public func configureForDisplay( ) {
0 commit comments