Skip to content

Commit

Permalink
[fix] fix createView visual bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Samet Aktaş committed Sep 30, 2019
1 parent 6f5f3ab commit ccecc12
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Desk360.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Desk360"
s.version = "0.9"
s.version = "0.9.1"
s.summary = "Desk360 iOS SDK"
s.description = <<-DESC
Desk360 iOS SDK [WIP]
Expand Down
2 changes: 1 addition & 1 deletion Sources/DarkTheme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct DarkTheme: DeskTheme {

var senderCellDateTextColor: UIColor = UIColor.init(hex: "9e9e9e")!

var desk360LabelTextColor: UIColor = UIColor.init(hex: "626262")!
var desk360LabelTextColor: UIColor = .white

var desk360ViewBackgroundColor: UIColor = UIColor.init(hex: "2d3543")!

Expand Down
2 changes: 1 addition & 1 deletion Sources/LightTheme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct LightTheme: DeskTheme {

var senderCellDateTextColor: UIColor = UIColor.init(hex: "525a7e")!

var desk360LabelTextColor: UIColor = UIColor.init(hex: "dcdcdc")!
var desk360LabelTextColor: UIColor = .white

var desk360ViewBackgroundColor: UIColor = UIColor.init(hex: "71717b")!

Expand Down
6 changes: 5 additions & 1 deletion Sources/Scenes/CreateRequest/CreateRequestView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ final class CreateRequestView: UIView, Layoutable, Loadingable {

desk360BottomView.snp.makeConstraints { make in
make.leading.trailing.equalToSuperview()
make.height.equalTo(preferredSpacing * 1.5)
make.bottom.equalTo(self.scrollView.snp.bottom)
}

Expand All @@ -255,7 +256,10 @@ final class CreateRequestView: UIView, Layoutable, Loadingable {
make.width.equalTo(scrollView.snp.width).inset(preferredSpacing)
}

scrollView.snp.makeConstraints { $0.edges.equalToSuperview() }
scrollView.snp.makeConstraints { make in
make.leading.trailing.top.equalToSuperview()
make.bottom.equalTo(safeArea.bottom)
}

}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Scenes/Listing/ListingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ListingView: UIView, Layoutable, Loadingable {

desk360BottomView.snp.makeConstraints { make in
make.leading.trailing.equalToSuperview()
make.height.equalTo(preferredSpacing)
make.height.equalTo(preferredSpacing * 1.5)
make.bottom.equalTo(safeArea.bottom)
}

Expand Down

0 comments on commit ccecc12

Please sign in to comment.