Skip to content

Instantly share code, notes, and snippets.

View dagad's full-sized avatar
🕶️
Early Bird

SanGyeol Kang dagad

🕶️
Early Bird
View GitHub Profile
@dagad
dagad / UITextViewPlaceholder.swift
Created May 11, 2022 08:29 — forked from tijme/UITextViewPlaceholder.swift
The correct way to implement a placeholder in a UITextView (Swift)
//
// UITextViewPlaceholder.swift
// TextViewPlaceholder
//
// Copyright (c) 2017 Tijme Gommers <tijme@finnwea.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@dagad
dagad / podforceupdate.sh
Created December 27, 2019 04:46 — forked from mbinna/podforceupdate.sh
Clear CocoaPods cache, re-download and re-install all pods
#!/usr/bin/env bash
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update
@dagad
dagad / ioslocaleidentifiers.csv
Created April 23, 2019 01:57 — forked from jacobbubu/ioslocaleidentifiers.csv
iOS Locale Identifiers
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
ro_MD Romanian (Moldova)
@dagad
dagad / ObservableStore.swift
Created April 2, 2019 23:03 — forked from agentk/ObservableStore.swift
ReSwift Store and ViewModel Scaffolding
import ReSwift
import ReactiveKit
class ObservableStore<State: StateType>: Store<State> {
let observable: Observable<State>
var reducer: AnyReducer!
override var state: State! {
didSet {
@dagad
dagad / ObservableStore.swift
Created April 2, 2019 23:03 — forked from agentk/ObservableStore.swift
ReSwift Store and ViewModel Scaffolding
import ReSwift
import ReactiveKit
class ObservableStore<State: StateType>: Store<State> {
let observable: Observable<State>
var reducer: AnyReducer!
override var state: State! {
didSet {