Skip to content

Commit ebd37d3

Browse files
author
Harry
committed
Release v1.0.2
* Added - `setTapGestureHandler()`, `setLongTapGestureHandler()` methods for Cell on `SBUChannelViewController` * Modified - Empty user name display policy * Modified - Display long pressed color * Changed - NavigationBarButton to public type * Renamed - `SBUMessageBaseCell` to `SBUBaseMessageCell` * Fixed - UIStatusBarStyle issue (light/dark) * Improved - Stability
1 parent 9378f9d commit ebd37d3

File tree

75 files changed

+2304
-1107
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2304
-1107
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
# Change Log
22

3+
### v1.0.2 (Apr 16, 2020)
4+
* Added - `setTapGestureHandler()`, `setLongTapGestureHandler()` methods for Cell on `SBUChannelViewController`
5+
* Modified - Empty user name display policy
6+
* Modified - Display long pressed color
7+
* Changed - NavigationBarButton to public type
8+
* Renamed - `SBUMessageBaseCell` to `SBUBaseMessageCell`
9+
* Fixed - UIStatusBarStyle issue (light/dark)
10+
* Improved - Stability
11+
12+
313
### v1.0.1 (Apr 7, 2020)
414
* Supported - Bitcode
515

616
### v1.0.0 (Apr 1, 2020)
7-
* First release.
17+
* First release.
470 KB
Binary file not shown.

SendBirdUIKit.framework/Assets.car

-30 KB
Binary file not shown.

SendBirdUIKit.framework/Headers/SBUBaseChannelCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// SendBirdUIKit
44
//
55
// Created by Harry Kim on 2020/03/23.
6-
// Copyright © 2020 Tez Park. All rights reserved.
6+
// Copyright © 2020 SendBird, Inc. All rights reserved.
77
//
88

99
import UIKit

SendBirdUIKit.framework/Headers/SBUMessageBaseCell.swift renamed to SendBirdUIKit.framework/Headers/SBUBaseMessageCell.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
//
2-
// SBUMessageBaseCell.swift
2+
// SBUBaseMessageCell.swift
33
// SendBirdUIKit
44
//
55
// Created by Tez Park on 03/02/2020.
6-
// Copyright © 2020 Tez Park. All rights reserved.
6+
// Copyright © 2020 SendBird, Inc. All rights reserved.
77
//
88

99
import UIKit
10-
10+
11+
@IBDesignable
12+
@available(*, deprecated, renamed: "SBUBaseMessageCell")
13+
open class SBUMessageBaseCell { }
14+
1115
@IBDesignable
12-
open class SBUMessageBaseCell: UITableViewCell {
13-
public var message: SBDBaseMessage!
16+
open class SBUBaseMessageCell: UITableViewCell {
17+
public var message: SBDBaseMessage = .init()
1418
public var position: MessagePosition = .center
1519
public var receiptState: SBUMessageReceiptState = .none
1620

@@ -32,7 +36,7 @@ open class SBUMessageBaseCell: UITableViewCell {
3236
return stackView
3337
}()
3438

35-
39+
3640
// MARK: - View Lifecycle
3741
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
3842
super.init(style: style, reuseIdentifier: reuseIdentifier)
@@ -100,14 +104,10 @@ open class SBUMessageBaseCell: UITableViewCell {
100104
}
101105

102106
// MARK: -
103-
open override func setSelected(_ selected: Bool, animated: Bool) {
104-
super.setSelected(selected, animated: animated)
105-
}
106-
107107
open override func prepareForReuse() {
108108
super.prepareForReuse()
109109
}
110-
110+
111111
// MARK: - Action
112112
var tapHandlerToProfileImage: (() -> Void)? = nil
113113
var tapHandlerToContent: (() -> Void)? = nil

SendBirdUIKit.framework/Headers/SBUChannelListViewController.swift

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// SendBirdUIKit
44
//
55
// Created by Tez Park on 03/02/2020.
6-
// Copyright © 2020 Tez Park. All rights reserved.
6+
// Copyright © 2020 SendBird, Inc. All rights reserved.
77
//
88

99
import UIKit
@@ -13,16 +13,16 @@ open class SBUChannelListViewController: UIViewController, UITableViewDelegate,
1313

1414
// MARK: - Public property
1515
// for UI
16-
var theme: SBUChannelListTheme = SBUTheme.channelListTheme
16+
public lazy var leftBarButton: UIBarButtonItem? = _leftBarButton
17+
public lazy var rightBarButton: UIBarButtonItem? = _rightBarButton
1718

1819

1920
// MARK: - Private property
2021
// for UI
22+
var theme: SBUChannelListTheme = SBUTheme.channelListTheme
23+
2124
private lazy var titleView: SBUNavigationTitleView = _titleView
22-
private lazy var leftBarButton: UIBarButtonItem = _leftBarButton
23-
private lazy var rightBarButton: UIBarButtonItem = _rightBarButton
2425
private var tableView = UITableView()
25-
2626
private lazy var _titleView: SBUNavigationTitleView = {
2727
let titleView = SBUNavigationTitleView(frame: CGRect(x: 0, y: 0, width: self.view.bounds.width, height: 50))
2828
titleView.text = SBUStringSet.ChannelList_Header_Title
@@ -112,11 +112,11 @@ open class SBUChannelListViewController: UIViewController, UITableViewDelegate,
112112
self.navigationController?.navigationBar.shadowImage = UIImage.from(color: theme.navigationBarShadowColor)
113113

114114
self.view.backgroundColor = theme.backgroundColor
115-
self.leftBarButton.image = SBUIconSet.iconBack
116-
self.leftBarButton.tintColor = theme.leftBarButtonTintColor
115+
self.leftBarButton?.image = SBUIconSet.iconBack
116+
self.leftBarButton?.tintColor = theme.leftBarButtonTintColor
117117

118-
self.rightBarButton.image = SBUIconSet.iconCreate
119-
self.rightBarButton.tintColor = theme.rightBarButtonTintColor
118+
self.rightBarButton?.image = SBUIconSet.iconCreate
119+
self.rightBarButton?.tintColor = theme.rightBarButtonTintColor
120120

121121
self.view.backgroundColor = theme.backgroundColor
122122
self.tableView.backgroundColor = theme.backgroundColor
@@ -127,10 +127,14 @@ open class SBUChannelListViewController: UIViewController, UITableViewDelegate,
127127

128128
self.setupStyles()
129129
}
130-
130+
131+
open override var preferredStatusBarStyle: UIStatusBarStyle {
132+
return theme.statusBarStyle
133+
}
134+
131135
open override func viewDidLoad() {
132136
super.viewDidLoad()
133-
137+
134138
self.navigationController?.interactivePopGestureRecognizer?.delegate = nil
135139

136140
SBUMain.connectionCheck { [weak self] user, error in
@@ -147,12 +151,13 @@ open class SBUChannelListViewController: UIViewController, UITableViewDelegate,
147151

148152
open override func viewWillAppear(_ animated: Bool) {
149153
super.viewWillAppear(animated)
154+
self.setNeedsStatusBarAppearanceUpdate()
150155
self.setupStyles()
151-
156+
152157
if self.isLoading { return }
153158
self.loadChannelChangeLogs(hasMore: true, token: self.lastUpdatedToken)
154159
}
155-
160+
156161
deinit {
157162
SBDMain.removeChannelDelegate(forIdentifier: self.description)
158163
SBDMain.removeConnectionDelegate(forIdentifier: self.description)

SendBirdUIKit.framework/Headers/SBUChannelSettingsViewController.swift

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// SendBirdUIKit
44
//
55
// Created by Tez Park on 05/02/2020.
6-
// Copyright © 2020 Tez Park. All rights reserved.
6+
// Copyright © 2020 SendBird, Inc. All rights reserved.
77
//
88

99
import UIKit
@@ -15,14 +15,14 @@ open class SBUChannelSettingsViewController: UIViewController, UITableViewDelega
1515

1616
// MARK: - Public property
1717
public var channelName: String? = nil
18+
public lazy var leftBarButton: UIBarButtonItem? = _leftBarButton
19+
public lazy var rightBarButton: UIBarButtonItem? = _rightBarButton
1820

1921

2022
// MARK: - Private property
2123
var theme: SBUChannelSettingsTheme = SBUTheme.channelSettingsTheme
2224

2325
private lazy var titleView: SBUNavigationTitleView = _titleView
24-
private lazy var leftBarButton: UIBarButtonItem = _leftBarButton
25-
private lazy var rightBarButton: UIBarButtonItem = _rightBarButton
2626
private lazy var userInfoView: UIView = _userInfoView
2727
private lazy var tableView = UITableView()
2828

@@ -136,8 +136,8 @@ open class SBUChannelSettingsViewController: UIViewController, UITableViewDelega
136136
self.navigationController?.navigationBar.barTintColor = theme.navigationBarTintColor
137137
self.navigationController?.navigationBar.shadowImage = .from(color: theme.navigationShadowColor)
138138

139-
self.leftBarButton.tintColor = theme.leftBarButtonTintColor
140-
self.rightBarButton.tintColor = theme.rightBarButtonTintColor
139+
self.leftBarButton?.tintColor = theme.leftBarButtonTintColor
140+
self.rightBarButton?.tintColor = theme.rightBarButtonTintColor
141141

142142
self.view.backgroundColor = theme.backgroundColor
143143
self.tableView.backgroundColor = theme.backgroundColor
@@ -149,6 +149,10 @@ open class SBUChannelSettingsViewController: UIViewController, UITableViewDelega
149149
self.setupStyles()
150150
}
151151

152+
open override var preferredStatusBarStyle: UIStatusBarStyle {
153+
return theme.statusBarStyle
154+
}
155+
152156
open override func viewDidLoad() {
153157
super.viewDidLoad()
154158

@@ -161,6 +165,7 @@ open class SBUChannelSettingsViewController: UIViewController, UITableViewDelega
161165

162166
open override func viewWillAppear(_ animated: Bool) {
163167
super.viewWillAppear(animated)
168+
self.setNeedsStatusBarAppearanceUpdate()
164169
self.setupStyles()
165170
}
166171

0 commit comments

Comments
 (0)