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

Commit

Permalink
deployment target (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
ay42 authored Mar 27, 2020
1 parent e352376 commit 0b35d0d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 6 additions & 2 deletions GridDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,8 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.1;
MACOSX_DEPLOYMENT_TARGET = 10.15;
ONLY_ACTIVE_ARCH = YES;
};
name = Debug;
Expand Down Expand Up @@ -844,6 +846,8 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.1;
MACOSX_DEPLOYMENT_TARGET = 10.15;
};
name = Release;
};
Expand Down Expand Up @@ -903,7 +907,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "GridDemo iOS/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
IPHONEOS_DEPLOYMENT_TARGET = 13.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -971,7 +975,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "GridDemo iOS/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
IPHONEOS_DEPLOYMENT_TARGET = 13.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ struct CardsView: View {
```

## SDKs
- iOS 13+
- Mac Catalyst 13.0+
- iOS 13.1+
- Mac Catalyst 13.1+
- macOS 10.15+
- watchOS 6+
- Xcode 11.0+
Expand Down
10 changes: 5 additions & 5 deletions Sources/Grid/Grid.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ public struct Grid<Content>: View where Content: View {
.transformPreference(GridPreferencesKey.self) {
self.style.transform(preferences: &$0, in: geometry.size)
}
.onPreferenceChange(GridPreferencesKey.self) { preferences in
self.preferences = preferences
}

}
.onPreferenceChange(GridPreferencesKey.self) { preferences in
self.preferences = preferences
}
.frame(
width: self.style.axis == .horizontal ? self.preferences.size.width : nil,
height: self.style.axis == .vertical ? self.preferences.size.height : nil
height: self.style.axis == .vertical ? self.preferences.size.height : nil,
alignment: .topLeading
)
}
}
Expand Down

0 comments on commit 0b35d0d

Please sign in to comment.