forked from VerticalHeretic/iOS-16-MacOS-13-SwiftUI-Showdown
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added any layout showdown and app icon
- Loading branch information
1 parent
a5fb832
commit e09c5fb
Showing
36 changed files
with
253 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 115 additions & 2 deletions
117
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+254 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/appstore1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.6 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/ipad152.png
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.
Binary file added
BIN
+3.49 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/ipadNotification20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.56 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/ipadNotification40.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.8 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/ipadPro167.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.92 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/ipadSettings29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.95 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/ipadSettings58.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.56 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/ipadSpotlight40.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.3 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/ipadSpotlight80.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.5 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/iphone120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.4 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/iphone180.png
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.
Binary file added
BIN
+4.56 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/notification40.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.06 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/notification60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.95 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/settings58.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.63 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/settings87.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.5 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/spotlight120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.3 KB
iOS16-SwiftUI-Showdown/Assets.xcassets/AppIcon.appiconset/spotlight80.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
iOS16-SwiftUI-Showdown/Assets.xcassets/apple1.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "laurenz-heymann-wAygsCk20h8-unsplash.jpg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+34.2 KB
...owdown/Assets.xcassets/apple1.imageset/laurenz-heymann-wAygsCk20h8-unsplash.jpg
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
iOS16-SwiftUI-Showdown/Assets.xcassets/apple2.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "priscilla-du-preez-CoqJGsFVJtM-unsplash.jpg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+27.7 KB
...own/Assets.xcassets/apple2.imageset/priscilla-du-preez-CoqJGsFVJtM-unsplash.jpg
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ enum FeatureType: String, Decodable { | |
case textField | ||
case grid | ||
case viewThatFits | ||
case layout | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// | ||
// LayoutScreen.swift | ||
// iOS16-SwiftUI-Showdown | ||
// | ||
// Created by Łukasz Stachnik on 04/09/2022. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct LayoutScreen: View { | ||
var feature: Feature | ||
@State private var changeLayout = false | ||
|
||
var body: some View { | ||
let layout = changeLayout ? AnyLayout(HStackLayout()) : AnyLayout(VStackLayout()) | ||
// there is an error in official apple documentation about definining this as of 04 September 2022 | ||
let layout2 = changeLayout ? AnyLayout(HStackLayout()) : AnyLayout(GridLayout()) | ||
|
||
ScrollView { | ||
VStack { | ||
layout { | ||
Image("apple2") | ||
.resizable() | ||
.scaledToFill() | ||
.frame(maxWidth: 300, maxHeight: 200) | ||
.clipped() | ||
|
||
Image("apple1") | ||
.resizable() | ||
.scaledToFill() | ||
.frame(maxWidth: 300, maxHeight: 200) | ||
.clipped() | ||
} | ||
.animation(.default, value: changeLayout) | ||
.onTapGesture { | ||
changeLayout.toggle() | ||
} | ||
|
||
layout2 { | ||
Image("apple2") | ||
.resizable() | ||
.scaledToFill() | ||
.frame(maxWidth: 300, maxHeight: 200) | ||
.clipped() | ||
|
||
Image("apple1") | ||
.resizable() | ||
.scaledToFill() | ||
.frame(maxWidth: 300, maxHeight: 200) | ||
.clipped() | ||
|
||
Image("apple1") | ||
.resizable() | ||
.scaledToFill() | ||
.frame(maxWidth: 300, maxHeight: 200) | ||
.clipped() | ||
|
||
Image("apple2") | ||
.resizable() | ||
.scaledToFill() | ||
.frame(maxWidth: 300, maxHeight: 200) | ||
.clipped() | ||
} | ||
.animation(.default, value: changeLayout) | ||
.onTapGesture { | ||
changeLayout.toggle() | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
struct LayoutScreen_Previews: PreviewProvider { | ||
static var previews: some View { | ||
LayoutScreen(feature: Feature(title: "Layouts", description: "Custom Layouts implementation", type: .layout)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters