I hereby claim:
- I am github on github.
- I am imliwei (https://keybase.io/imliwei) on keybase.
- I have a public key ASA-ZdPJ6KToReBpmNCQ6WfO1xksdkzZpoR5pIdRgLM54wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import SwiftUI | |
| struct Blur: UIViewRepresentable { | |
| var style: UIBlurEffect.Style = .systemMaterial | |
| func makeUIView(context: Context) -> UIVisualEffectView { | |
| return UIVisualEffectView(effect: UIBlurEffect(style: style)) | |
| } | |
| func updateUIView(_ uiView: UIVisualEffectView, context: Context) { | |
| uiView.effect = UIBlurEffect(style: style) | |
| } | |
| } |
| import SwiftUI | |
| import GoogleMobileAds | |
| import UIKit | |
| final class Interstitial:NSObject, GADInterstitialDelegate{ | |
| var interstitial:GADInterstitial = GADInterstitial(adUnitID: interstitialID) | |
| override init() { | |
| super.init() | |
| LoadInterstitial() |
| import SwiftUI | |
| import GoogleMobileAds | |
| import UIKit | |
| final class Rewarded: NSObject, GADRewardedAdDelegate{ | |
| var rewardedAd:GADRewardedAd = GADRewardedAd(adUnitID: rewardID) | |
| var rewardFunction: (() -> Void)? = nil | |
| import SwiftUI | |
| import UIKit | |
| struct PageViewController: UIViewControllerRepresentable { | |
| var controllers: [UIViewController] | |
| @Binding var currentPage: Int | |
| func makeCoordinator() -> Coordinator { | |
| Coordinator(self) | |
| } |
| import SwiftUI | |
| struct WeekView<DateView>: View where DateView: View { | |
| @Environment(\.calendar) var calendar | |
| let week: Date | |
| let content: (Date) -> DateView | |
| init(week: Date, @ViewBuilder content: @escaping (Date) -> DateView) { |
| // | |
| // MultilineTextField.swift | |
| // GipsyToDo | |
| // | |
| // Created by liwei on 2020/6/4. | |
| // Copyright © 2020 liwei. All rights reserved. | |
| // | |
| import Foundation | |
| import SwiftUI |
| class KeyboardResponder: ObservableObject { | |
| private var _center: NotificationCenter | |
| @Published var currentHeight: CGFloat = 0 | |
| private var lastHeight: CGFloat = 0 | |
| init(center: NotificationCenter = .default) { | |
| _center = center | |
| _center.addObserver(self, selector: #selector(keyBoardWillShow(notification:)), name: UIResponder.keyboardWillShowNotification, object: nil) | |
| _center.addObserver(self, selector: #selector(keyBoardWillHide(notification:)), name: UIResponder.keyboardWillHideNotification, object: nil) | |
| } |
| // | |
| // UserDefault.swift | |
| // kittenmemento | |
| // | |
| // Created by 李伟 on 2020/5/9. | |
| // Copyright © 2020 李伟. All rights reserved. | |
| // | |
| import Foundation | |
| import Combine |