Skip to content

Commit

Permalink
Merge branch 'demo-app'
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepistrol committed Jun 20, 2023
2 parents 42f76d5 + 938780e commit d6fe0ff
Show file tree
Hide file tree
Showing 12 changed files with 574 additions and 2 deletions.
386 changes: 386 additions & 0 deletions Demo App/Demo App.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"pins" : [
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "f1e9245226002bb134884345d4809b9543da3666",
"version" : "509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-06-17-a"
}
}
],
"version" : 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
63 changes: 63 additions & 0 deletions Demo App/Demo App/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"images" : [
{
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
6 changes: 6 additions & 0 deletions Demo App/Demo App/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
44 changes: 44 additions & 0 deletions Demo App/Demo App/ContentView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
//
// ContentView.swift
// Demo App
//
// Created by Lukas Pistrol on 20.06.23.
//

import SwiftUI
import SFSymbolsMacro

@SFSymbol
enum Symbols: String, CaseIterable {
case globe
case folder
case folderFill = "folder.fill"
case folderBadgeMinus = "folder.badge.minus"
case folderBadgeQuestionmark = "folder.badge.questionmark"
case square
case squareSlash = "square.slash"
case squareLefthalfFilled = "square.lefthalf.filled"
case squareInsetFilled = "square.inset.filled"
case squareSplitDiagonalFill = "square.split.diagonal.fill"
}

struct ContentView: View {
var body: some View {
VStack {
Label("Hello, World!", systemImage: Symbols.globe())
Spacer()
LazyVGrid(columns: .init(repeating: GridItem(.fixed(50)), count: 5), content: {
ForEach(Symbols.allCases, id: \.self.rawValue) { symbol in
symbol.image
.imageScale(.medium)
.font(.largeTitle)
}
})
}
.padding()
}
}

#Preview {
ContentView()
}
10 changes: 10 additions & 0 deletions Demo App/Demo App/Demo_App.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
</dict>
</plist>
17 changes: 17 additions & 0 deletions Demo App/Demo App/Demo_AppApp.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// Demo_AppApp.swift
// Demo App
//
// Created by Lukas Pistrol on 20.06.23.
//

import SwiftUI

@main
struct Demo_AppApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "83c2be9f6268e9f67622f130440cf43928c6bfb0",
"version" : "509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-05-20-a"
"revision" : "165fc6d22394c1168ff76ab5d951245971ef07e5",
"version" : "509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-06-05-a"
}
}
],
Expand Down

0 comments on commit d6fe0ff

Please sign in to comment.