Skip to content

Instantly share code, notes, and snippets.

View HevaWu's full-sized avatar
🍋
Enjoy everyday!

He(Heva) Wu HevaWu

🍋
Enjoy everyday!
View GitHub Profile
@HevaWu
HevaWu / deployPod.md
Last active October 10, 2021 13:28
Cocoapods deploy
pod lib lint
pod trunk push xxx.podspec

TroubleShooting

  1. [!] Authentication token is invalid or unverified. Either verify it with the email that was sent or register a new session.
@HevaWu
HevaWu / Swift_Option_Compare.swift
Last active August 20, 2021 04:02
Swift Option Compare: OptionSet vs Enum vs Struct
func log(_ category: LCategory) {
print(category.description)
}
log(.categoryA)
log([.categoryB, .categoryA])
log([.categoryA, .categoryB])
struct LCategory: OptionSet, CustomStringConvertible {
@HevaWu
HevaWu / TestAppDelegate.swift
Last active July 27, 2021 02:56
TestAppDelegate_TestSceneDelegate
import UIKit
@objc(TestingAppDelegate)
final class TestingAppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
if #available(iOS 13, *) {