A boiled down checklist adapted from this post, created by @jordanmorgan10.
To use this, create a Github Issue in your own repo, and simply copy and paste this text.
Things any iOS app can benefit from
- iCloud Sync
- Core Spotlight integration
import SwiftUI | |
struct ContentView: View { | |
// sample of data was compiled using the following sources: | |
// https://birdgei.com/2011/08/30/list-of-100-irregular-plural-nouns-in-english/ | |
// https://www.grammarly.com/blog/plural-nouns/ | |
// https://www.thoughtco.com/irregular-plural-nouns-in-english-1692634 | |
// https://www.ef.co.uk/english-resources/english-grammar/singular-and-plural-nouns/ | |
import SwiftUI | |
struct ContentView: View { | |
@State private var items: [RandomItem] = (0...25).indices.map { _ in RandomItem() } | |
var body: some View { | |
ScrollViewReader { proxy in | |
List { | |
ForEach(items) { item in | |
Text("\(item.number)") |
import SwiftUI | |
import Charts | |
@available(iOS 16.0, *) | |
struct ContentView: View { | |
@State private var selection: HashableItem? | |
var body: some View { | |
// MARK: - 1. Baseline performance test | |
// Scrolling is smooth, CPU averages around 10% when scrolling |
import SwiftUI | |
import Charts | |
struct ContentView: View { | |
@State private var grid = Grid(numRows: 10, numCols: 10) | |
var body: some View { | |
if #available(iOS 16.0, *) { | |
VStack { | |
Spacer() |
import SwiftUI | |
import Charts | |
@available(iOS 16.0, *) | |
struct ContentView: View { | |
@State private var opacity = -0.5 | |
var body: some View { | |
VStack { | |
Chart(SalesData.last30Days, id: \.day) { |
A boiled down checklist adapted from this post, created by @jordanmorgan10.
To use this, create a Github Issue in your own repo, and simply copy and paste this text.
Things any iOS app can benefit from
import SwiftUI | |
struct ContentView: View { | |
var body: some View { | |
VStack(alignment: .leading) { | |
HStack { | |
Image(systemName: "xmark") | |
.font(Font.title.weight(.bold)) | |
.foregroundColor(.gray) | |
ZStack(alignment: .leading) { |
import SwiftUI | |
struct ContentView: View { | |
let animals = ["bear", | |
"buffalo", | |
"cow", | |
"fish", | |
"fox", | |
"goose", | |
"ox", |