Skip to content

Instantly share code, notes, and snippets.

@bpyamasinn
bpyamasinn / AppDelegate.swift
Last active September 21, 2019 10:07
Mac のキーボードを有効 / 無効を切り替える実装
import Cocoa
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
let keyEvent = Event()
lazy var statusItem: NSStatusItem = {
return NSStatusBar.system.statusItem(withLength: NSStatusItem.squareLength)
}()
func applicationDidFinishLaunching(_ aNotification: Notification) {
import UIKit
import RxSwift
import FirebaseFirestore
class ViewController: UIViewController {
@IBOutlet weak var tableView: UITableView!
var posts = [Post]()
let disposeBag = DisposeBag()
override func viewDidLoad() {