Commit cb7fd426199afae3def3d0b6ff885c58a85c5562

Authored by Dmitriy Tymofyeyev
1 parent 9c8501aa

bugs fix

  1 +{
  2 + "images" : [
  3 + {
  4 + "filename" : "Close.png",
  5 + "idiom" : "universal",
  6 + "scale" : "1x"
  7 + },
  8 + {
  9 + "filename" : "Group 33489@2x.png",
  10 + "idiom" : "universal",
  11 + "scale" : "2x"
  12 + },
  13 + {
  14 + "filename" : "Group 33489@3x.png",
  15 + "idiom" : "universal",
  16 + "scale" : "3x"
  17 + }
  18 + ],
  19 + "info" : {
  20 + "author" : "xcode",
  21 + "version" : 1
  22 + }
  23 +}
... ...
  1 +{
  2 + "images" : [
  3 + {
  4 + "filename" : "Heart.png",
  5 + "idiom" : "universal",
  6 + "scale" : "1x"
  7 + },
  8 + {
  9 + "filename" : "Heart@2x.png",
  10 + "idiom" : "universal",
  11 + "scale" : "2x"
  12 + },
  13 + {
  14 + "filename" : "Heart@3x.png",
  15 + "idiom" : "universal",
  16 + "scale" : "3x"
  17 + }
  18 + ],
  19 + "info" : {
  20 + "author" : "xcode",
  21 + "version" : 1
  22 + }
  23 +}
... ...
  1 +{
  2 + "images" : [
  3 + {
  4 + "filename" : "HeartRed.png",
  5 + "idiom" : "universal",
  6 + "scale" : "1x"
  7 + },
  8 + {
  9 + "filename" : "Heart@2x.png",
  10 + "idiom" : "universal",
  11 + "scale" : "2x"
  12 + },
  13 + {
  14 + "filename" : "Heart@3x.png",
  15 + "idiom" : "universal",
  16 + "scale" : "3x"
  17 + }
  18 + ],
  19 + "info" : {
  20 + "author" : "xcode",
  21 + "version" : 1
  22 + }
  23 +}
... ...
1 1 //
2   -// DisplayNameCell.swift
  2 +// File.swift
3 3 // InterQR-Internship
4 4 //
5   -// Created by Leyter on 09.06.2022.
  5 +// Created by Дмитрий Тимофеев on 15.06.2022.
6 6 //
7 7
8 8 import Foundation
9   -import UIKit
10   -class DisplayNameCell: UITableViewCell, Reusable {
11   - var settingsIcon: UIImageView = {
12   - var obj = UIImageView()
13   - obj.image = UIImage(named: "Profile")
14   - return obj
15   - }()
16   - var titleLabel: UILabel = {
17   - var obj = UILabel()
18   - obj.text = "Your display name"
19   - obj.font = .skModernist(type: .bold, ofSize: 16)
20   - obj.textColor = UIColor(red: 0.196, green: 0.216, blue: 0.333, alpha: 1)
21   - return obj
22   - }()
23   - var descriptionLabel: UILabel = {
24   - var obj = UILabel()
25   - obj.text = "This name will be displayed everywhere"
26   - obj.font = .skModernist(type: .regular, ofSize: 14)
27   - obj.textColor = UIColor(red: 0.725, green: 0.725, blue: 0.725, alpha: 1)
28   - return obj
29   - }()
30   - var displayNameTextField: UITextField = {
31   - var obj = UITextField()
32   - obj.text = "John Doe"
33   - obj.returnKeyType = .done
34   - obj.backgroundColor = UIColor(red: 0.971, green: 0.967, blue: 0.967, alpha: 1)
35   - obj.clipsToBounds = true
36   - obj.layer.cornerRadius = 15
37   - return obj
38   - }()
39   -
40   - override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
41   - super.init(style: style, reuseIdentifier: reuseIdentifier)
42   - setup()
43   - }
44   -
45   - required init?(coder: NSCoder) {
46   - super.init(coder: coder)
47   - setup()
48   - }
49   -
50   - private func setup() {
51   - selectionStyle = .none
52   - contentView.addSubview(settingsIcon)
53   - contentView.addSubview(titleLabel)
54   - contentView.addSubview(descriptionLabel)
55   - contentView.addSubview(displayNameTextField)
56   -
57   - settingsIcon.snp.makeConstraints { make in
58   - make.top.equalToSuperview()
59   - make.leading.equalTo(snp.leading).offset(32)
60   - }
61   - titleLabel.snp.makeConstraints { make in
62   - make.top.equalTo(settingsIcon.snp.top)
63   - make.leading.equalTo(settingsIcon.snp.trailing).offset(18)
64   - }
65   - descriptionLabel.snp.makeConstraints { make in
66   - make.top.equalTo(titleLabel.snp.bottom).offset(5)
67   - make.leading.equalTo(titleLabel.snp.leading)
68   - }
69   - displayNameTextField.snp.makeConstraints { make in
70   - make.top.equalTo(descriptionLabel.snp.bottom).offset(20)
71   - make.leading.equalTo(snp.leading).offset(66)
72   - make.trailing.equalTo(snp.trailing).offset(-28)
73   - make.height.equalTo(47)
74   - make.bottom.equalToSuperview().offset(-30)
75   - }
76   -
77   - }
78   -}
... ...
1 1 //
2   -// SetingsSwitchCell.swift
  2 +// SettingsSwitchCell.swift
3 3 // InterQR-Internship
4 4 //
5   -// Created by Leyter on 09.06.2022.
  5 +// Created by Дмитрий Тимофеев on 15.06.2022.
6 6 //
7 7
8 8 import Foundation
9   -import UIKit
10   -class SettingsSwitchCell: UITableViewCell, Reusable {
11   -
12   - var settingsIcon: UIImageView = {
13   - var obj = UIImageView()
14   - obj.image = UIImage(named: "Notification")
15   - return obj
16   - }()
17   -
18   - var titleLabel: UILabel = {
19   - var obj = UILabel()
20   - obj.text = "Do not disturb"
21   - obj.textColor = UIColor(red: 0.196, green: 0.216, blue: 0.333, alpha: 1)
22   - obj.font = .skModernist(type: .bold, ofSize: 16)
23   - return obj
24   - }()
25   -
26   - var descriptionLabel: UILabel = {
27   - var obj = UILabel()
28   - obj.text = "You will not be notified of any calls for one day. Auto reset at midnight"
29   - obj.textColor = UIColor(red: 0.725, green: 0.725, blue: 0.725, alpha: 1)
30   - obj.font = .skModernist(type: .regular, ofSize: 14)
31   - obj.numberOfLines = 0
32   - return obj
33   - }()
34   -
35   - var notificationSwitch: UISwitch = {
36   - var obj = UISwitch()
37   - obj.isOn = false
38   - obj.clipsToBounds = true
39   - return obj
40   - }()
41   -
42   - override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
43   - super.init(style: style, reuseIdentifier: reuseIdentifier)
44   - setup()
45   - }
46   -
47   - required init?(coder: NSCoder) {
48   - super.init(coder: coder)
49   - setup()
50   - }
51   -
52   - func setup() {
53   - selectionStyle = .none
54   - contentView.addSubview(settingsIcon)
55   - contentView.addSubview(titleLabel)
56   - contentView.addSubview(descriptionLabel)
57   - contentView.addSubview(notificationSwitch)
58   -
59   - settingsIcon.snp.makeConstraints { make in
60   - make.leading.equalToSuperview().offset(31)
61   - make.top.equalToSuperview().offset(38)
62   - }
63   - titleLabel.snp.makeConstraints { make in
64   - make.leading.equalTo(settingsIcon.snp.trailing).offset(17.5)
65   - make.top.equalToSuperview().offset(38)
66   - }
67   - descriptionLabel.snp.makeConstraints { make in
68   - make.top.equalTo(titleLabel.snp.bottom).offset(5)
69   - make.leading.equalTo(titleLabel.snp.leading)
70   - make.bottom.equalToSuperview().offset(-22)
71   - }
72   - notificationSwitch.snp.makeConstraints { make in
73   - make.top.equalTo(snp.top).offset(36)
74   - make.trailing.equalTo(snp.trailing).offset(-28)
75   - }
76   - }
77   -
78   -}
... ...
... ... @@ -2,74 +2,7 @@
2 2 // SettingsTableViewCell.swift
3 3 // InterQR-Internship
4 4 //
5   -// Created by Leyter on 09.06.2022.
  5 +// Created by Дмитрий Тимофеев on 15.06.2022.
6 6 //
7 7
8 8 import Foundation
9   -import UIKit
10   -class SettingsTableViewCell: UITableViewCell, Reusable {
11   -
12   - var settingsIcon: UIImageView = {
13   - var obj = UIImageView()
14   - obj.image = UIImage(named: "Edit")
15   - obj.contentMode = .scaleAspectFill
16   - return obj
17   - }()
18   -
19   - var titleLabel: UILabel = {
20   - var obj = UILabel()
21   - obj.text = "Edit residents"
22   - obj.textColor = UIColor(red: 0.196, green: 0.216, blue: 0.333, alpha: 1)
23   - obj.font = .skModernist(type: .bold, ofSize: 16)
24   - return obj
25   - }()
26   - var descriptionLabel: UILabel = {
27   - var obj = UILabel()
28   - obj.text = "Edit the residents and their information"
29   - obj.textColor = UIColor(red: 0.725, green: 0.725, blue: 0.725, alpha: 1)
30   - obj.font = .skModernist(type: .regular, ofSize: 14)
31   - return obj
32   - }()
33   - var arrowImageView: UIImageView = {
34   - var obj = UIImageView()
35   - obj.image = UIImage(named: "NextPointer")
36   - return obj
37   - }()
38   -
39   - override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
40   - super.init(style: style, reuseIdentifier: reuseIdentifier)
41   - setup()
42   - }
43   -
44   - required init?(coder: NSCoder) {
45   - super.init(coder: coder)
46   - setup()
47   - }
48   -
49   - func setup() {
50   - selectionStyle = .none
51   - contentView.addSubview(settingsIcon)
52   - contentView.addSubview(titleLabel)
53   - contentView.addSubview(descriptionLabel)
54   - contentView.addSubview(arrowImageView)
55   -
56   - settingsIcon.snp.makeConstraints { make in
57   - make.top.equalToSuperview().offset(26)
58   - make.leading.equalToSuperview().offset(32)
59   - make.height.width.equalTo(18)
60   - }
61   - titleLabel.snp.makeConstraints { make in
62   - make.top.equalToSuperview().offset(26)
63   - make.leading.equalTo(settingsIcon.snp.trailing).offset(15)
64   - }
65   - descriptionLabel.snp.makeConstraints { make in
66   - make.top.equalTo(titleLabel.snp.bottom).offset(5)
67   - make.leading.equalTo(titleLabel.snp.leading)
68   - make.bottom.equalToSuperview().offset(-22)
69   - }
70   - arrowImageView.snp.makeConstraints { make in
71   - make.centerY.equalToSuperview()
72   - make.trailing.equalTo(snp.trailing).offset(-28)
73   - }
74   - }
75   -}
... ...
Please register or login to post a comment