fix: segmented control width issue in notification scene
This commit is contained in:
parent
7b66471819
commit
c656fe956b
|
@ -48,8 +48,13 @@ extension NotificationViewController {
|
|||
super.viewDidLoad()
|
||||
|
||||
view.backgroundColor = Asset.Colors.Background.secondarySystemBackground.color
|
||||
segmentControl.translatesAutoresizingMaskIntoConstraints = false
|
||||
navigationItem.titleView = segmentControl
|
||||
NSLayoutConstraint.activate([
|
||||
segmentControl.widthAnchor.constraint(equalToConstant: 287)
|
||||
])
|
||||
segmentControl.addTarget(self, action: #selector(NotificationViewController.segmentedControlValueChanged(_:)), for: .valueChanged)
|
||||
|
||||
tableView.translatesAutoresizingMaskIntoConstraints = false
|
||||
view.addSubview(tableView)
|
||||
NSLayoutConstraint.activate([
|
||||
|
|
Loading…
Reference in New Issue