Skip to content

Commit cbd6bd7

Browse files
committed
tpuMerge branch 'main' of https://github.com/aheze/Setting
2 parents a9db747 + 91adab1 commit cbd6bd7

3 files changed

Lines changed: 12 additions & 14 deletions

File tree

Example/SettingExample.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@
282282
CODE_SIGN_ENTITLEMENTS = SettingExample/SettingExample.entitlements;
283283
CODE_SIGN_STYLE = Automatic;
284284
CURRENT_PROJECT_VERSION = 1;
285-
DEVELOPMENT_TEAM = WV6XDLHK3W;
285+
DEVELOPMENT_TEAM = "";
286286
ENABLE_HARDENED_RUNTIME = YES;
287287
ENABLE_PREVIEWS = YES;
288288
GENERATE_INFOPLIST_FILE = YES;
@@ -296,10 +296,10 @@
296296
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault;
297297
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
298298
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
299-
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
299+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
300300
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
301301
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
302-
MACOSX_DEPLOYMENT_TARGET = 13.0;
302+
MACOSX_DEPLOYMENT_TARGET = 12.0;
303303
MARKETING_VERSION = 1.0;
304304
PRODUCT_BUNDLE_IDENTIFIER = com.aheze.SettingExample;
305305
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -319,7 +319,7 @@
319319
CODE_SIGN_ENTITLEMENTS = SettingExample/SettingExample.entitlements;
320320
CODE_SIGN_STYLE = Automatic;
321321
CURRENT_PROJECT_VERSION = 1;
322-
DEVELOPMENT_TEAM = WV6XDLHK3W;
322+
DEVELOPMENT_TEAM = "";
323323
ENABLE_HARDENED_RUNTIME = YES;
324324
ENABLE_PREVIEWS = YES;
325325
GENERATE_INFOPLIST_FILE = YES;
@@ -333,10 +333,10 @@
333333
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault;
334334
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
335335
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
336-
IPHONEOS_DEPLOYMENT_TARGET = 16.2;
336+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
337337
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
338338
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
339-
MACOSX_DEPLOYMENT_TARGET = 13.0;
339+
MACOSX_DEPLOYMENT_TARGET = 12.0;
340340
MARKETING_VERSION = 1.0;
341341
PRODUCT_BUNDLE_IDENTIFIER = com.aheze.SettingExample;
342342
PRODUCT_NAME = "$(TARGET_NAME)";

Example/SettingExample/PreferencesView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ struct PreferencesView: View {
176176
) {
177177
SettingCustomView(id: "Color Picker Preview") {
178178
VStack {
179-
if #available(iOS 16.0, macOS 12.0, *) {
179+
if #available(iOS 16.0, macOS 13.0, *) {
180180
Rectangle()
181181
.fill(Color(hex: model.color).gradient)
182182
} else {

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**Compose beautiful preference panels.**
44

5-
- Simple but powerful syntax.
5+
- Simple but powerful syntax (powered by [result builders](https://www.hackingwithswift.com/swift/5.4/result-builders)).
66
- Create nested pages and groups.
77
- Fully searchable.
88
- Native integration with SwiftUI and AppStorage.
@@ -259,6 +259,8 @@ SettingCustomView {
259259
}
260260
```
261261

262+
- Need to store custom structs in `AppStorage`? Check out @IanKeen's awesome [gist](https://gist.github.com/IanKeen/4d29b48519dca125b21675eeb7623d60)!
263+
262264
- You can pass in a custom `SettingViewModel` instance for finer control.
263265

264266
<table>
@@ -273,11 +275,7 @@ struct PlaygroundView: View {
273275
SettingStack(settingViewModel: settingViewModel) {
274276
SettingPage(title: "Playground") {
275277
SettingGroup {
276-
SettingPicker(
277-
title: "Picker",
278-
choices: ["A", "B", "C", "D"],
279-
selectedIndex: $index
280-
)
278+
SettingText(title: "Welcome to Setting!")
281279
}
282280
}
283281
} customNoResultsView: {
@@ -337,4 +335,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
337335
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
338336
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
339337
SOFTWARE.
340-
```
338+
```

0 commit comments

Comments
 (0)