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
| // | |
| // FacebookAuth.swift | |
| // GitHub: ethanhuang13 | |
| // Twitter: @ethanhuang13 | |
| import AuthenticationServices | |
| import SafariServices | |
| /* | |
| Updated: |
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
| struct ContentView: View { | |
| var body: some View { | |
| ScrollViewOffset(onOffsetChange: { (offset) in | |
| print("New ScrollView offset: \(offset)") | |
| }) { | |
| VStack { | |
| ForEach(0..<100) { index in | |
| Text("\(index)") | |
| } | |
| } |
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
| // | |
| // Color+Codable.swift | |
| // FirestoreCodableSamples | |
| // | |
| // Created by Peter Friese on 18.03.21. | |
| // | |
| import SwiftUI | |
| // Inspired by https://cocoacasts.com/from-hex-to-uicolor-and-back-in-swift |
OlderNewer