Skip to content

Commit

Permalink
IOS-10430 fix padding
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Trujillo26 committed Jul 24, 2024
1 parent bee78df commit edbc601
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,7 @@ private class EmptyStateViewSampleViewController: UIViewController {
override func loadView() {
let view = UIView()
view.backgroundColor = .background
view.directionalLayoutMargins = NSDirectionalEdgeInsets(top: 16, leading: 24, bottom: 16, trailing: 24)

view.directionalLayoutMargins = NSDirectionalEdgeInsets(top: 16, leading: 16, bottom: 16, trailing: 16)
view.addSubview(emptyState, constraints: [
emptyState.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: 24),
emptyState.leadingAnchor.constraint(equalTo: view.layoutMarginsGuide.leadingAnchor),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ struct CarouselCatalogView: View {
.foregroundColor(.textSecondary)
.lineLimit(4)
}
.padding(24)
.padding(16)
}
}
.autoplay(hasAutoplay ? .active(TimeInterval(autoplayTimeIntervalOptions[autoplayTimeIntervalSelectedIndex])) : .inactive)
Expand Down
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/airbnb/lottie-ios.git",
"state" : {
"revision" : "4e5877425dae5c10792fc9d22d53dc6bf6824dc1",
"version" : "3.1.8"
"revision" : "7fe8b6f697ae7db4bf0df270119592cb5d502848",
"version" : "4.4.1"
}
},
{
"identity" : "sdwebimage",
"kind" : "remoteSourceControl",
"location" : "https://github.com/SDWebImage/SDWebImage.git",
"state" : {
"revision" : "633996a807442ec28df9d33b0f88ce57a0e2fdbf",
"version" : "5.17.0"
"revision" : "f6afa0132961d593f07970d84e2d8b588c29ea04",
"version" : "5.19.1"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Sources/Mistica/Components/Feedback/FeedbackView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public class FeedbackView: UIView {
private lazy var scrollStackView: ScrollStackView = {
let scrollStackView = ScrollStackView(arrangedSubviews: [contentContainerStackView])
scrollStackView.translatesAutoresizingMaskIntoConstraints = false
scrollStackView.stackView.spacing = 24
scrollStackView.stackView.spacing = 16
scrollStackView.stackView.alignment = .leading
scrollStackView.stackView.layoutMargins = UIEdgeInsets(top: 64, left: 16, bottom: 16, right: 16)
scrollStackView.stackView.preservesSuperviewLayoutMargins = false
Expand Down
2 changes: 1 addition & 1 deletion Sources/MisticaSwiftUI/Components/Cards/DataCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public struct DataCard<Headline: View, Fragment: View, PrimaryButton: View, Link
.padding(.top, 16)
}
}
.padding(.horizontal, 24)
.padding(.horizontal, 16)
.padding(.top, 24)
.padding(.bottom, 24)
.expandHorizontally(alignment: .leading)
Expand Down
2 changes: 1 addition & 1 deletion Sources/MisticaSwiftUI/Components/Carousel/Carousel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public struct Carousel<Data: RandomAccessCollection, ID: Hashable, Content: View
func stack<ContentView: View>(@ViewBuilder content: () -> ContentView) -> some View {
switch style {
case .default:
VStack(alignment: controlAlignment.horizontal, spacing: 24) {
VStack(alignment: controlAlignment.horizontal, spacing: 16) {
content()
}
case .fullWidth:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public struct EmptyState<PrimaryButton: View, SecondaryButton: View>: View {
}
.expandHorizontally(alignment: .leading)
}
.padding(24)
.padding(16)
}
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/MisticaSwiftUI/Components/Feedback/Feedback.swift
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public struct Feedback<
.frame(height: Constants.spacing)

contentView
.padding(.horizontal, 24)
.padding(.horizontal, 16)
.expandVertically()
} else {
Spacer()
Expand Down

0 comments on commit edbc601

Please sign in to comment.