This branch is where SupportDocs gets its data! You can add, edit, and delete documents here. For usage instructions, check out the README
’s usage section in the main branch.
https://raw.githubusercontent.com/aheze/SupportDocs/DataSource/_data/supportdocs_datasource.json
struct SwiftUIExampleView_MinimalCode: View {
let dataSource = URL(string: "https://raw.githubusercontent.com/aheze/SupportDocs/DataSource/_data/supportdocs_datasource.json")!
@State var supportDocsPresented = false
var body: some View {
Button("Present SupportDocs from SwiftUI!") { supportDocsPresented = true }
.sheet(isPresented: $supportDocsPresented, content: {
SupportDocsView(dataSource: dataSource, isPresented: $supportDocsPresented)
})
}
}
class UIKitExampleController_MinimalCode: UIViewController {
/**
Connect this inside the storyboard.
This is just for demo purposes, so it's not connected yet.
*/
@IBAction func presentButtonPressed(_ sender: Any) {
let dataSource = URL(string: "https://raw.githubusercontent.com/aheze/SupportDocs/DataSource/_data/supportdocs_datasource.json")!
let supportDocsViewController = SupportDocsViewController(dataSource: dataSource)
self.present(supportDocsViewController, animated: true, completion: nil)
}
}
README.md
) directly. Your changes will be overriden the next time you push (the GitHub Action will regenerate this file). Instead, update the file in _scripts/README.md
.