Skip to content

Commit

Permalink
fix(Padding): IOS-10430 fix component padding (#393)
Browse files Browse the repository at this point in the history
* IOS-10430 fix padding
---------

Co-authored-by: L-Trujillo26 <L-Trujillo26@users.noreply.github.com>
  • Loading branch information
L-Trujillo26 and L-Trujillo26 authored Aug 1, 2024
1 parent b63687b commit 8ddd7eb
Show file tree
Hide file tree
Showing 30 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ private class EmptyStateViewSampleViewController: UIViewController {
let view = UIView()
view.backgroundColor = .background
view.directionalLayoutMargins = NSDirectionalEdgeInsets(top: 16, leading: 24, bottom: 16, trailing: 24)

view.addSubview(emptyState, constraints: [
emptyState.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: 24),
emptyState.leadingAnchor.constraint(equalTo: view.layoutMarginsGuide.leadingAnchor),
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/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,8 @@ public struct EmptyState<PrimaryButton: View, SecondaryButton: View>: View {
}
.expandHorizontally(alignment: .leading)
}
.padding(24)
.padding(.horizontal, 16)
.padding(.vertical, 24)
}
}

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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8ddd7eb

Please sign in to comment.