calendarID from cal.csv can be used at path param in
https://developers.google.com/calendar/v3/reference/calendars/get
https://developers.google.com/calendar/v3/reference/events/list
| // | |
| // ContentView.swift | |
| // AnimationTimingCurve | |
| // | |
| // Created by Chris Eidhof on 25.09.19. | |
| // Copyright © 2019 Chris Eidhof. All rights reserved. | |
| // | |
| import SwiftUI |
| // | |
| // DarwinNotificationCenter.swift | |
| // | |
| // Copyright © 2017 WeTransfer. All rights reserved. | |
| // | |
| import Foundation | |
| /// A Darwin notification payload. It does not contain any userInfo, a Darwin notification is purely event handling. | |
| public struct DarwinNotification { |
| import SwiftUI | |
| struct ContentView: View { | |
| var body: some View { | |
| HStack { | |
| Text("Hello") | |
| .padding() | |
| .background(.blue) | |
| .overlay { | |
| Color.yellow |
| import SwiftUI | |
| enum ScalableFont { | |
| case system(size: CGFloat, weight: Font.Weight = .regular, design: Font.Design = .default) | |
| case custom(_ name: String, size: CGFloat) | |
| var size: CGFloat { | |
| switch self { |
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
A dump of the SwiftUI.framework binary for the iOS simulator (as of Xcode 12.0 beta 2) using the swift-reflection-dump tool.
Note: I used a Swift 5.3 compiler build from a few weeks ago that I had laying around. Because of ABI stability, I don't think the swift-reflection-dump version has to match the compiler version that was used to build the binary, but I'm not 100% sure.
| // Corona Ampel Berlin Widget | |
| // | |
| // Copyright (C) 2020 by map <mail@map.wtf> | |
| // | |
| // Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. | |
| // | |
| // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL | |
| // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
| // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER | |
| // IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE |
| import Foundation | |
| import SwiftUI | |
| extension EnvironmentValues { | |
| public func value<T>(_: T.Type = T.self, forKey key: String) -> T? { | |
| guard let value = first(where: { name($0, equals: key) }) else { | |
| print("No EnvironmentValue with key '\(key)' found.") | |
| return nil | |
| } |
| private let configKey = CodingUserInfoKey(rawValue: UUID().uuidString)! | |
| private struct ConfigWrapper<Value> { | |
| let value: Value | |
| } | |
| extension ConfigWrapper: Decodable where Value: DecodableWithConfiguration { | |
| init(from decoder: Decoder) throws { | |
| let config = decoder.userInfo[configKey]! as! Value.DecodingConfiguration | |
| value = try Value(from: decoder, configuration: config) |