Skip to content

Instantly share code, notes, and snippets.

View kyungpyoda's full-sized avatar
🙃
Howdy

kyungpyoda

🙃
Howdy
View GitHub Profile
@kyungpyoda
kyungpyoda / main.swift
Created August 24, 2022 18:48
nested function의 객체 소유권 삽질
import Foundation
class Dummy {
private let name = "Dummy"
}
final class SomeClass {
private let dodoService = DoDoService()
@kyungpyoda
kyungpyoda / AppStringResourceGenerator.gs
Last active April 7, 2022 02:14
Manage and generate string resources through Google Spread Sheet
var appName = "AppName";
// 메뉴바 추가
function onOpen() {
var sheet = SpreadsheetApp.getActiveSpreadsheet();
var entries = [
{
name : "Create iOS Resources",
functionName : "exportiOSResources"
},
@kyungpyoda
kyungpyoda / UIView+addHighlightEffect.swift
Created March 8, 2022 07:16
[iOS, Swift] Add touch highlight effect to UIView
//
// UIView+addHighlightEffect.swift
//
//
// Created by 홍경표 on 2021/11/17.
//
import UIKit
public extension UIView {
@kyungpyoda
kyungpyoda / LoadingIndicator.swift
Created January 3, 2022 05:14
[iOS] Global Loading Indicator
//
// LoadingIndicator.swift
//
// Created by 홍경표 on 2021/12/28.
//
import UIKit
public class LoadingIndicator {
private static weak var currentIndicator: UIActivityIndicatorView?
@kyungpyoda
kyungpyoda / ActivityTracker.swift
Last active January 3, 2022 05:13
[iOS] ActivityTracker that enable monitoring of sequence computation with minimum delay time. (based `ActivityIndicator` of RxExample project)
//
// ActivityTracker.swift
// RxActivityTracker
//
// Created by 홍경표 on 2021/12/30.
//
// Reference: https://github.com/ReactiveX/RxSwift/blob/main/RxExample/RxExample/Services/ActivityIndicator.swift
import Foundation
@kyungpyoda
kyungpyoda / Notifier.swift
Created November 30, 2021 00:40
[iOS, Swift] To Implement Local Push Notification
//
// Notifier.swift
//
// Created by 홍경표 on 2021/11/29.
//
import Foundation
import UserNotifications
@kyungpyoda
kyungpyoda / PartialPresentationController.swift
Last active January 31, 2024 04:15
[iOS, Swift] Presentation Customizable ViewController
//
// PartialPresentationController.swift
// PartialViewControllerSample
//
// Created by 홍경표 on 2021/11/16.
//
import UIKit
/**
@kyungpyoda
kyungpyoda / DynamicStatusBarNavigation.swift
Created November 11, 2021 01:17
[iOS, Swift] Dynamic Status Bar Style with Navigation Controller
//
// DynamicStatusBarNavigation.swift
//
// Created by 홍경표 on 2021/09/09.
//
import UIKit
/// This NavigationController makes embedded viewControllers show their own `preferredStatusBarStyle`
/// , which cannot implemented in default `UINavigationController`.
@kyungpyoda
kyungpyoda / PaddingLabel.swift
Last active September 1, 2021 04:48
[iOS] Label with Padding
//
// PaddingLabel.swift
//
// Created by 홍경표 on 2021/05/23.
//
import UIKit
// Width가 고정이 아니고 최대 Width가 되었을 때 마지막 글자가 잘릴 수 있음..
//
@kyungpyoda
kyungpyoda / UIViewController+setToWindowRootVC.swift
Created August 30, 2021 00:41
[iOS] Swap window's rootViewController extension with animation flag
//
// UIViewController+setToWindowRootVC.swift
// UtilityModule
//
// Created by 홍경표 on 2021/08/30.
//
import UIKit
public extension UIViewController {