This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// ======================================================= | |
// 본 자료는 CC0-1.0 라이선스를 따릅니다. | |
// https://creativecommons.org/publicdomain/zero/1.0/deed | |
// 저작권자의 허락을 구하지 않아도 상업적인 목적을 포함한 어떠한 목적으로든 | |
// 자유롭게 복사, 수정, 배포, 실연할 수 있습니다. | |
// ======================================================= | |
// 모든 정보는 직접 수집하여 정리한 정보입니다. | |
// 일부 정보가 오기되었거나, 위/경도 좌표가 부정확할 수 있습니다. | |
// Gist 댓글을 통해 오류를 제보해주세요. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
// MARK: - SheetPresentation | |
public extension View { | |
func sheetPresentation<SheetView: View>(isPresented: Binding<Bool>, @ViewBuilder sheetView: @escaping () -> SheetView, onDismiss: SheetPresentationController<SheetView>.DefaultClosureType? = nil) -> some View { | |
self.background( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// DetentSheet.swift | |
// StarLardKit | |
// | |
// Created by Caleb Friden on 9/28/21. | |
// | |
import SwiftUI | |
// MARK: - Public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We'll be installing Homebrew in the /opt directory. | |
cd /opt | |
# Create a directory for Homebrew. This requires root permissions. | |
sudo mkdir homebrew | |
# Make us the owner of the directory so that we no longer require root permissions. | |
sudo chown -R $(whoami) /opt/homebrew | |
# Download and unzip Homebrew. This command can be found at https://docs.brew.sh/Installation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import PlaygroundSupport | |
protocol WaterfallLayoutDelegate: AnyObject { | |
func numberOfColumns() -> Int | |
func columnsSize(at indexPath: IndexPath) -> CGSize | |
func columnSpace() -> CGFloat | |
} | |
final class WaterfallLayoutViewController: UIViewController, UICollectionViewDataSource { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@propertyWrapper | |
public struct Weak<Wrapped: AnyObject> { | |
private weak var value: AnyObject? | |
public init(_ value: Wrapped? = nil) { | |
self.value = value | |
} | |
public var wrappedValue: Wrapped? { | |
get { value as? Wrapped } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import Moya | |
import RxSwift | |
/// 인증 관련 API | |
final class AuthService: BaseService<AuthAPI> { | |
static let shared = AuthService() | |
private override init() {} | |
/// 토큰 재발급 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CancelBag.swift | |
// CountriesSwiftUI | |
// | |
// Created by Alexey Naumov on 04.04.2020. | |
// Copyright © 2020 Alexey Naumov. All rights reserved. | |
// | |
import Combine | |
import SwiftUI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class SegmentedControlSupplementaryView: UICollectionReusableView { | |
let segmentControl = UISegmentedControl(items: ["Item 1", "Items 2", "Items 3"]) | |
static let reuseIdentifier = "segmented-supplementary-reuse-identifier" | |
override init(frame: CGRect) { | |
super.init(frame: frame) | |
self.backgroundColor = .white |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// documentProxy.swift | |
// KeyboardKitDemoKeyboard | |
// | |
// Created by Jeffrey Wear on 4/28/20. | |
// | |
import UIKit | |
class TextDocumentProxy<TextDocument: UIResponder & UITextInput>: NSObject, UITextDocumentProxy { |
NewerOlder