Skip to content
This repository was archived by the owner on Dec 27, 2020. It is now read-only.

Commit 0b35d0d

Browse files
authored
deployment target (#87)
1 parent e352376 commit 0b35d0d

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

GridDemo.xcodeproj/project.pbxproj

+6-2
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,8 @@
812812
GCC_WARN_UNINITIALIZED_AUTOS = YES;
813813
GCC_WARN_UNUSED_FUNCTION = YES;
814814
GCC_WARN_UNUSED_VARIABLE = YES;
815+
IPHONEOS_DEPLOYMENT_TARGET = 13.1;
816+
MACOSX_DEPLOYMENT_TARGET = 10.15;
815817
ONLY_ACTIVE_ARCH = YES;
816818
};
817819
name = Debug;
@@ -844,6 +846,8 @@
844846
GCC_WARN_UNINITIALIZED_AUTOS = YES;
845847
GCC_WARN_UNUSED_FUNCTION = YES;
846848
GCC_WARN_UNUSED_VARIABLE = YES;
849+
IPHONEOS_DEPLOYMENT_TARGET = 13.1;
850+
MACOSX_DEPLOYMENT_TARGET = 10.15;
847851
};
848852
name = Release;
849853
};
@@ -903,7 +907,7 @@
903907
GCC_WARN_UNUSED_FUNCTION = YES;
904908
GCC_WARN_UNUSED_VARIABLE = YES;
905909
INFOPLIST_FILE = "GridDemo iOS/Info.plist";
906-
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
910+
IPHONEOS_DEPLOYMENT_TARGET = 13.1;
907911
LD_RUNPATH_SEARCH_PATHS = (
908912
"$(inherited)",
909913
"@executable_path/Frameworks",
@@ -971,7 +975,7 @@
971975
GCC_WARN_UNUSED_FUNCTION = YES;
972976
GCC_WARN_UNUSED_VARIABLE = YES;
973977
INFOPLIST_FILE = "GridDemo iOS/Info.plist";
974-
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
978+
IPHONEOS_DEPLOYMENT_TARGET = 13.1;
975979
LD_RUNPATH_SEARCH_PATHS = (
976980
"$(inherited)",
977981
"@executable_path/Frameworks",

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ struct CardsView: View {
120120
```
121121

122122
## SDKs
123-
- iOS 13+
124-
- Mac Catalyst 13.0+
123+
- iOS 13.1+
124+
- Mac Catalyst 13.1+
125125
- macOS 10.15+
126126
- watchOS 6+
127127
- Xcode 11.0+

Sources/Grid/Grid.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ public struct Grid<Content>: View where Content: View {
2424
.transformPreference(GridPreferencesKey.self) {
2525
self.style.transform(preferences: &$0, in: geometry.size)
2626
}
27-
.onPreferenceChange(GridPreferencesKey.self) { preferences in
28-
self.preferences = preferences
29-
}
30-
27+
}
28+
.onPreferenceChange(GridPreferencesKey.self) { preferences in
29+
self.preferences = preferences
3130
}
3231
.frame(
3332
width: self.style.axis == .horizontal ? self.preferences.size.width : nil,
34-
height: self.style.axis == .vertical ? self.preferences.size.height : nil
33+
height: self.style.axis == .vertical ? self.preferences.size.height : nil,
34+
alignment: .topLeading
3535
)
3636
}
3737
}

0 commit comments

Comments
 (0)