-
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.
- Loading branch information
Showing
11 changed files
with
139 additions
and
44 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
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 |
---|---|---|
@@ -1,16 +1,23 @@ | ||
# SnowballSwiftKit | ||
|
||
Lots to do!! SwiftUI Component Kit supporting iOS 15.0+ | ||
Lots to do!! SwiftUI Component Kit supporting iOS 15.0+. | ||
|
||
## Getting Started | ||
|
||
- Easiest way to open [both the SnowballSwiftKit Package and SnowballSwiftKit Example App] is via the bash script `start` or open `SnowballSwiftKit/SnowballSwiftExample/SnowballSwiftExample.xcodeproj` | ||
- Easiest way to open -- both the `SnowballSwiftKit` Package and `SnowballSwiftExample` App -- is via the bash script `start` or open `SnowballSwiftExample/SnowballSwiftExample.xcodeproj` | ||
- [swiftlint](https://github.com/realm/SwiftLint) | ||
- [apple package manager plugins](https://github.com/apple/swift-package-manager/blob/main/Documentation/Plugins.md) | ||
|
||
Soon: (send me a tg @ vivianphung if u want anything sooner) | ||
- [Custom SF Symbols Collection](https://www.david-smith.org/blog/2023/01/23/design-notes-18/) | ||
- Snowball Component Kit documentation site | ||
- SnowballKotlinKit (for [Jetpack](https://developer.android.com/jetpack)) | ||
### `Config.xcconfig` | ||
|
||
For now, until an app wide `SnowballSettings` is arch, edit `Config.xcconfig` with API Keys to test out some of the custom views such as `SnowballNFTGridView` and `SnowballNFTListView`. | ||
|
||
Read more on [Config / Dev Mode](https://nshipster.com/xcconfig/) | ||
|
||
## Soon | ||
(send me a telegram @vivianphung if u want anything sooner) | ||
- 'SnowballSettings' for app wide configs | ||
- Login with wallet / email flow | ||
- [Custom SF Symbols Collection](https://www.david-smith.org/blog/2023/01/23/design-notes-18/) | ||
- Snowball Kit documentation site | ||
- 'SnowballKotlinKit' (for [Jetpack](https://developer.android.com/jetpack)) |
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 @@ | ||
// | ||
// Config.xcconfig | ||
// SnowballSwiftExample | ||
// | ||
// Created by Vivian Phung on 5/22/23. | ||
// | ||
|
||
// Configuration settings file format documentation can be found at: | ||
// https://help.apple.com/xcode/#/dev745c5c974 | ||
|
||
ALCHEMY_NFT_KEY = PasteNFTKeyHere |
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
29 changes: 29 additions & 0 deletions
29
SnowballSwiftExample/SnowballSwiftExample/Example Views/SnowballSwiftExampleNFTView.swift
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,29 @@ | ||
// | ||
// SnowballSwiftExampleNFTGridView.swift | ||
// SnowballSwiftExample | ||
// | ||
// Created by Vivian Phung on 5/22/23. | ||
// | ||
|
||
import SwiftUI | ||
import SnowballSwiftKit | ||
|
||
struct SnowballSwiftExampleNFTView: View { | ||
// todo: Snowball Settings for app wide settings | ||
var alchemyKey: String | ||
var type: NFTViewType = .grid | ||
|
||
var body: some View { | ||
switch type { | ||
case .grid: | ||
SnowballNFTGridView(ethAddress: "vivianphung.eth", alchemyKey: alchemyKey) | ||
case .list: | ||
SnowballNFTListView(ethAddress: "vivianphung.eth", alchemyKey: alchemyKey) | ||
} | ||
} | ||
} | ||
|
||
enum NFTViewType: String { | ||
case grid = "grid" | ||
case list = "list" | ||
} |
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 |
---|---|---|
|
@@ -35,4 +35,3 @@ extension Font.TextStyle { | |
"Caption": .caption | ||
] | ||
} | ||
|
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>ALCHEMY_NFT_KEY</key> | ||
<string>$(ALCHEMY_NFT_KEY)</string> | ||
</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
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
Oops, something went wrong.