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
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 Foundation | |
import Combine | |
import UIKit | |
import PlaygroundSupport | |
struct Image: Decodable { | |
let url: String | |
} | |
let stackView = UIStackView(frame: CGRect(x: 0, y: 0, width: 200, height: 600)) |
import SwiftUI | |
extension VerticalAlignment { | |
struct VertAlignName: AlignmentID { | |
static func defaultValue(in d: ViewDimensions) -> CGFloat { | |
d[.top] | |
} | |
} | |
static let vertAlignName = VerticalAlignment(VertAlignName.self) | |
} |
import SwiftUI | |
struct ContentView: View { | |
let animals = ["bear", | |
"buffalo", | |
"cow", | |
"fish", | |
"fox", | |
"goose", | |
"ox", |
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 { | |
var body: some View { | |
VStack(alignment: .leading) { | |
HStack { | |
Image(systemName: "xmark") | |
.font(Font.title.weight(.bold)) | |
.foregroundColor(.gray) | |
ZStack(alignment: .leading) { |
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 selection: HashableItem? | |
var body: some View { | |
// MARK: - 1. Baseline performance test | |
// Scrolling is smooth, CPU averages around 10% when scrolling |
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) { |