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
import Foundation | |
import SwiftUI | |
import PositionScrollView | |
/// Extended ScrollView which can controll position | |
public struct MinimalHorizontalExample: View, PositionScrollViewDelegate { | |
/// Page size of Scroll | |
var pageSize = CGSize(width: 200, height: 300) | |
// Create PositionScrollViewModel |
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
import Foundation | |
import SwiftUI | |
/// Extended ScrollView which can controll position | |
public struct MinimalHorizontalExample: View, PositionScrollViewDelegate { | |
/// Page size of Scroll | |
var pageSize = CGSize(width: 200, height: 300) | |
// Create PositionScrollViewModel | |
// (Need to create in parent view to bind the state between this view and PositionScrollView) |
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
import Foundation | |
import SwiftUI | |
/// Extended ScrollView which can controll position | |
public struct MinimalHorizontalExample: View, PositionScrollViewDelegate { | |
/// Page size of Scroll | |
var pageSize = CGSize(width: 200, height: 300) | |
// Create PositionScrollViewModel | |
// (Need to create in parent view to bind the state between this view and PositionScrollView) |
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
const webhook = new IncomingWebhook("https://hooks.slack.com/services/your_web_hook_url"); |
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
{ | |
"projects": { | |
"default": "your_project_id_here" | |
} | |
} |
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
import React from "react" | |
import { ContactForm } from '@kazuwombat/fire-form' | |
import config from '../firebaseConfig' | |
const ContactPage = () => { | |
return ( | |
<ContactForm | |
config={config} | |
successCallback={() => { | |
alert("success :)") /* You need to handle success */ |
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
import React from "react" | |
import { ContactForm } from '@kazuwombat/fire-form' | |
import config from '../firebaseConfig' | |
const ContactPage = () => { | |
return ( | |
<ContactForm | |
config={config} | |
successCallback={() => { alert("success :)") /* You need to handle success. */ | |
}} |
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
export default { | |
apiKey: "xxxxxxx", | |
authDomain: "xxxxxxx", | |
databaseURL: "xxxxxxx", | |
projectId: "xxxxxxx", | |
storageBucket: "xxxxxxx", | |
messagingSenderId: "xxxxxxx", | |
appId: "xxxxxxx", | |
measurementId: "xxxxxxx" | |
}; |
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
{ | |
"rules": { | |
".read": false, | |
".write": true | |
} | |
} |
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
Button("+", action: { | |
// Call ViewModel countUp method | |
self.counterViewModel.countUp() | |
}) |