This file contains hidden or 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
| package com.example.myfirstapp | |
| import android.support.v7.app.AppCompatActivity | |
| import android.os.Bundle | |
| import android.widget.TextView | |
| class ResultActivity : AppCompatActivity() { | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) |
This file contains hidden or 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
| import UIKit | |
| import Combine | |
| /* | |
| # References | |
| - [ra1028/SwiftUI-Combine: This is an example project of SwiftUI and Combine using GitHub API.](https://github.com/ra1028/SwiftUI-Combine) | |
| - [marty-suzuki/GitHubSearchWithSwiftUI: SwiftUI and Combine based GitHubSearch example.](https://github.com/marty-suzuki/GitHubSearchWithSwiftUI) | |
| - [DataTaskPublisherを作ってみた](https://gist.github.com/yamoridon/16c1cc70ac46e50def4ca6695ceff772) | |
| - [【iOS】Combineフレームワークまとめ(2019/6/9時点) - Qiita](https://qiita.com/shiz/items/5efac86479db77a52ccc) | |
| */ |
This file contains hidden or 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
| import UIKit | |
| import AuthenticationServices | |
| import Combine | |
| class ViewController: UIViewController { | |
| // you must add a URL scheme to your Info.plist | |
| let callbackURLScheme = "pocketsample" | |
| let callbackURL = "pocketsample:authorizationFinished" |
This file contains hidden or 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
| <?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>SupportsSwiftPackage</key> | |
| <true/> | |
| <key>Kind</key> | |
| <string>Xcode.IDEFoundation.TextSubstitutionFileTemplateKind</string> | |
| <key>Description</key> | |
| <string>A SwiftUI custom view with text</string> |
This file contains hidden or 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
| <?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>SupportsSwiftPackage</key> | |
| <true/> | |
| <key>Kind</key> | |
| <string>Xcode.IDEFoundation.TextSubstitutionFileTemplateKind</string> | |
| <key>Description</key> | |
| <string>A SwiftUI custom view with text</string> |
This file contains hidden or 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
| //___FILEHEADER___ | |
| import SwiftUI | |
| struct ___FILEBASENAMEASIDENTIFIER___: View { | |
| var body: some View { | |
| Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/) | |
| } | |
| } |
This file contains hidden or 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
| //___FILEHEADER___ | |
| import SwiftUI | |
| struct ___FILEBASENAMEASIDENTIFIER___: View { | |
| var body: some View { | |
| Text("___VARIABLE_productName:identifier___") | |
| } | |
| } |
OlderNewer