Skip to content

Instantly share code, notes, and snippets.

enum Parked {}
enum Driving {}
enum Gaming {}
private class EngineSystem {
static var shared = EngineSystem()
private init() {}
func start() {/**/}
func accelerate() { /* Uses gas pedal input to accelerate the real car */ }
@minsOne
minsOne / xcframework.sh
Created December 26, 2023 08:32
xcframework
set -Ceu
PACKAGE_DIR=$(
cd "$(dirname "$0")/.." || exit 1
pwd
)
cd "${PACKAGE_DIR}" || exit 1
SCHEME="MachOKit"
DERIVED_DATA_PATH=".build"
@minsOne
minsOne / links.md
Created December 20, 2023 16:06 — forked from tkersey/links.md
For future reference but maybe not.
import _Concurrency
import Combine
import Dispatch
import Foundation
// MARK: General
struct SomeError: Error {}
extension AnyPublisher {
@minsOne
minsOne / DataState.swift
Last active September 26, 2023 11:11
SwiftUI DataState
enum DataState<V, E: Error> {
case idle
case initialLoading case reLoading (V)
case retryLoading (E)
case success (V)
case failure(E)
case paging (V)
case pagingFailure(V, E)
}
@minsOne
minsOne / letsswift2023.md
Last active September 25, 2023 02:16
레츠스위프트2023 발표 준비
  • 제목 : iOS 애플리케이션 개발 생산성 고찰 - 빠른 퇴근을 위한 우리는 어떻게 해야할 것인가?

  • 목차

  1. 개발 생산성 고찰
  2. 개인의 개발 환경 개선
  3. 프로젝트 구조 개선
  4. 프로젝트 환경 개선
  5. 마치며
  • 개발 생산성 고찰 - 우리는 왜 정시 퇴근을 지키지 못하는가?
@minsOne
minsOne / README.md
Created August 7, 2023 07:48 — forked from IsaacXen/README.md
(Almost) Every WWDC videos download links for aria2c.
@minsOne
minsOne / ContentView.swift
Created July 28, 2023 01:37 — forked from Snowy1803/ContentView.swift
This code allows you to use matchedGeometryEffect in SwiftUI while keeping iOS 13 compatibility in your app.
//
// ContentView.swift
// Example of using matchedGeometryEffect in iOS 13 code
// matchedGeometryEffect example code taken and adapted from :
// https://sarunw.com/posts/a-first-look-at-matchedgeometryeffect/
//
// Created by Emil Pedersen on 16/10/2020.
//
struct ContentView: View {
import RIBs
import RxSwift
protocol HomeRouting: ViewableRouting {}
protocol HomePresentable: Presentable {
var listener: HomePresentableListener? { get set }
func update(state: HomeViewState)
}
@minsOne
minsOne / dynamicMemberLookup Builder
Last active July 13, 2023 07:22
dynamicMemberLookup Builder
// refer: https://woowabros.github.io/swift/2021/02/18/swift-dynamic-features.html
@dynamicMemberLookup
public struct Builder<Base: AnyObject> {
private var base: Base
public init(_ base: Base) {
self.base = base
}