Skip to content

Instantly share code, notes, and snippets.

Davide Mendolia davideme

Block or report user

Report or block davideme

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Example.swift
struct List : View {
var body: some View {
NavigationView {
List(viewModel.superHeroes.identified(by: \.name)) { value in
SwitchValue(value) {
CaseType(is: SuperHero.self) { superHero in
Text(superHero.name)
}
CaseType(is: Avenger.self) { avenger in
@davideme
davideme / State of the Apps 2019 (macOS).md
Last active Dec 28, 2018
State of the Apps 2019 (macOS)
View State of the Apps 2019 (macOS).md

As I’m setting up my new laptop, I will use few minutes to write down my list of apps, you will maybe find some useful stuff in it.

Browser

Password Manager

Cloud storage

@davideme
davideme / ViewController.swift
Created Jan 30, 2018
LifecycleObserver with Notification
View ViewController.swift
//
// ViewController.swift
// LifeCycleDelegate
//
// Created by Davide Mendolia on 30/01/2018.
// Copyright © 2018 Karumi. All rights reserved.
//
import UIKit
View ViewControllerLifecycle.swift
//
// ViewController.swift
// LifeCycleDelegate
//
// Created by Davide Mendolia on 30/01/2018.
// Copyright © 2018 Karumi. All rights reserved.
//
import UIKit
View keybase.md

Keybase proof

I hereby claim:

  • I am davideme on github.
  • I am davideme (https://keybase.io/davideme) on keybase.
  • I have a public key ASDnkkom9QjmbOGfsiIALJLSzQM14-f0uyExBvQmaCZa3wo

To claim this, I am signing this object:

View MealTableViewController.swift
class MealTableViewController: UITableViewController {
// MARK: Properties
var meals = [Meal]()
override func viewDidLoad() {
super.viewDidLoad()
// Use the edit button item provided by the table view controller.
@davideme
davideme / AWSCognitoDataset.swift
Last active May 3, 2016
Add square brackets syntax to AWSCognitoDataset
View AWSCognitoDataset.swift
extension AWSCognitoDataset {
subscript(index: String) -> String {
get {
return self.stringForKey(index)
}
set(newValue) {
self.setString(newValue, forKey: index)
}
}
}
View Assignable protocols
// This protocol cannot be implemented by a enum.
// Because enums may not contain stored properties
protocol SomeProtocol {
var mustBeSettable: Bool { get set }
}
struct SomeStruct: SomeProtocol {
var mustBeSettable:Bool
}
You can’t perform that action at this time.