-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update badges when icloud not available.
- Add warning text in contact settings when not available - Fix coin technical analytics UI
- Loading branch information
Showing
20 changed files
with
199 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
...bleWallet/UnstoppableWallet/Modules/ContactBook/ContactBookList/ManageBarButtonView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import UIKit | ||
import ThemeKit | ||
import SnapKit | ||
import ComponentKit | ||
|
||
class ManageBarButtonView: UIView { | ||
private let button = UIButton() | ||
private let badgeView = UIView() | ||
|
||
var onTap: (() -> ())? | ||
|
||
init() { | ||
super.init(frame: .zero) | ||
|
||
addSubview(badgeView) | ||
badgeView.snp.makeConstraints { maker in | ||
maker.trailing.top.equalToSuperview().inset(-CGFloat.margin4) | ||
maker.size.equalTo(CGFloat.margin8) | ||
} | ||
|
||
badgeView.backgroundColor = .themeLucian | ||
badgeView.cornerRadius = .cornerRadius4 | ||
badgeView.isHidden = true | ||
|
||
addSubview(button) | ||
button.snp.makeConstraints { maker in | ||
maker.edges.equalToSuperview() | ||
} | ||
button.setImage(UIImage(named: "manage_2_24")?.withTintColor(.themeJacob), for: .normal) | ||
button.addTarget(self, action: #selector(onTapButton), for: .touchUpInside) | ||
} | ||
|
||
required init?(coder aDecoder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
@objc private func onTapButton() { | ||
onTap?() | ||
} | ||
|
||
} | ||
|
||
extension ManageBarButtonView { | ||
|
||
var isBadgeHidden: Bool { | ||
get { | ||
badgeView.isHidden | ||
} | ||
set { | ||
badgeView.isHidden = newValue | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.