-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37870ce
commit 0051975
Showing
16 changed files
with
713 additions
and
10 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
Example/Example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
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,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> |
14 changes: 14 additions & 0 deletions
14
Example/Example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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,14 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "kingfisher", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/onevcat/Kingfisher.git", | ||
"state" : { | ||
"revision" : "add0a87ec4e31e2ca2a0b2085f0559201e4f5918", | ||
"version" : "7.10.1" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
11 changes: 11 additions & 0 deletions
11
Example/Example/Assets.xcassets/AccentColor.colorset/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,11 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
Example/Example/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
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 | ||
} | ||
} |
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,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
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,19 @@ | ||
// | ||
// ContentView.swift | ||
// Example | ||
// | ||
// Created by Enes Karaosman on 19.12.2023. | ||
// | ||
|
||
import SwiftUI | ||
import JSONDrivenUI | ||
|
||
struct ContentView: View { | ||
var body: some View { | ||
JSONDataView(json: Data(complexSample.utf8)) | ||
} | ||
} | ||
|
||
#Preview { | ||
ContentView() | ||
} |
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,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> |
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,17 @@ | ||
// | ||
// ExampleApp.swift | ||
// Example | ||
// | ||
// Created by Enes Karaosman on 19.12.2023. | ||
// | ||
|
||
import SwiftUI | ||
|
||
@main | ||
struct ExampleApp: App { | ||
var body: some Scene { | ||
WindowGroup { | ||
ContentView() | ||
} | ||
} | ||
} |
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,11 @@ | ||
<?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>NSAppTransportSecurity</key> | ||
<dict> | ||
<key>NSAllowsArbitraryLoads</key> | ||
<true/> | ||
</dict> | ||
</dict> | ||
</plist> |
6 changes: 6 additions & 0 deletions
6
Example/Example/Preview Content/Preview Assets.xcassets/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,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
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,132 @@ | ||
// | ||
// Complex.swift | ||
// Example | ||
// | ||
// Created by Enes Karaosman on 19.12.2023. | ||
// | ||
|
||
import Foundation | ||
|
||
let complexSample = """ | ||
{ | ||
"type": "VStack", | ||
"subviews": [ | ||
{ | ||
"type": "Text", | ||
"properties": { | ||
"font": "title" | ||
}, | ||
"values": { | ||
"text": "LARGE TITLE TEXT" | ||
} | ||
}, | ||
{ | ||
"type": "Image", | ||
"values": { | ||
"imageUrl": "http://picsum.photos/400/200" | ||
}, | ||
"properties": { | ||
"padding": 16, | ||
"height": 200 | ||
} | ||
}, | ||
{ | ||
"type": "Text", | ||
"properties": { | ||
"padding": 16, | ||
"font": "title", | ||
"fontWeight": "semibold" | ||
}, | ||
"values": { | ||
"text": "Semibold Title" | ||
} | ||
}, | ||
{ | ||
"type": "List", | ||
"properties": { | ||
"horizontalAlignment": "leading", | ||
"spacing": 16, | ||
"padding": 8 | ||
}, | ||
"subviews": [ | ||
{ | ||
"type": "HStack", | ||
"properties": { | ||
"foregroundColor": "#001238", | ||
"spacing": 8 | ||
}, | ||
"subviews": [ | ||
{ | ||
"type": "Image", | ||
"properties": { | ||
"height": 70 | ||
}, | ||
"values": { | ||
"imageUrl": "http://picsum.photos/70/70" | ||
} | ||
}, | ||
{ | ||
"type": "VStack", | ||
"properties": { | ||
"spacing": 4, | ||
"horizontalAlignment": "leading" | ||
}, | ||
"subviews": [ | ||
{ | ||
"type": "Text", | ||
"values": { "text" : "Item.1 Title" } | ||
}, | ||
{ | ||
"type": "Text", | ||
"properties": { | ||
"foregroundColor": "#828282" | ||
}, | ||
"values": { "text" : "Here is multiline description text in VStack which is inside HStack" } | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "HStack", | ||
"properties": { | ||
"foregroundColor": "#001238", | ||
"spacing": 8 | ||
}, | ||
"subviews": [ | ||
{ | ||
"type": "Image", | ||
"properties": { | ||
"height": 70 | ||
}, | ||
"values": { | ||
"imageUrl": "http://picsum.photos/70/70" | ||
} | ||
}, | ||
{ | ||
"type": "VStack", | ||
"properties": { | ||
"spacing": 4, | ||
"horizontalAlignment": "leading" | ||
}, | ||
"subviews": [ | ||
{ | ||
"type": "Text", | ||
"values": { "text" : "Item.2 Title" } | ||
}, | ||
{ | ||
"type": "Text", | ||
"properties": { | ||
"foregroundColor": "#828282" | ||
}, | ||
"values": { "text" : "Here is second multiline description text in VStack which is inside HStack" } | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
""" |
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