Skip to content

Instantly share code, notes, and snippets.

View TuenTuenna's full-sized avatar
😍
Happy coding 👏

개발하는 정대리 TuenTuenna

😍
Happy coding 👏
View GitHub Profile
@TuenTuenna
TuenTuenna / next.config.md
Last active October 28, 2023 12:16
next.config.js 파일 -> cors 세팅
/** @type {import('next').NextConfig} */
const nextConfig = {
    async headers() {
        return [
            {
                // matching all API routes
                source: "/api/:path*",
 headers: [
//
// UIBarButtonItem+Badge.swift
// PiGuardMobile
//
// Created by Stefano Vettor on 12/04/16.
// Copyright © 2016 Stefano Vettor. All rights reserved.
//
import UIKit
@TuenTuenna
TuenTuenna / changeRoot.md
Last active April 14, 2023 13:35
ChangeRoot

UIkit 에서 루트 바꾸기

// UIApplication 익스텐션
extension UIApplication {
    
    func changeRoot(_ vc: UIViewController){
       // 애플리케이션 에서 키윈도우로 첫번째 윈도우 씬을 가져오고
        let scenes = UIApplication.shared.connectedScenes
 let windowScenes = scenes.first as? UIWindowScene
@TuenTuenna
TuenTuenna / optional_tupple_unwrapping.md
Last active February 10, 2023 01:32
Optiona Tupple + Unwrapping
@TuenTuenna
TuenTuenna / reorder array.md
Created December 16, 2022 16:19
reorder array with ids array
struct Model {
    
    var id : Int
    var name : String
}

var modelArray = [
    Model(id: 0, name: "하하"),
@TuenTuenna
TuenTuenna / password check.md
Last active December 12, 2022 12:20
password check
import Foundation
import Combine

class TestVM : ObservableObject {
    
    
 @Published var password : String = ""
@TuenTuenna
TuenTuenna / URLSession tutorial .md
Last active November 22, 2022 11:44
iOS URLSession API 호출 개념 정리
@TuenTuenna
TuenTuenna / urlSession-cheatSheet.md
Created October 31, 2022 15:01
URLSession CheatSheet
@TuenTuenna
TuenTuenna / dummy-html.md
Created September 28, 2022 02:57
dummy-html
<html>
<!-- Text between angle brackets is an HTML tag and is not displayed.
Most tags, such as the HTML and /HTML tags that surround the contents of
a page, come in pairs; some tags, like HR, for a horizontal rule, stand
alone. Comments, such as the text you're reading, are not displayed when
the Web page is shown. The information between the HEAD and /HEAD tags is
not displayed. The information between the BODY and /BODY tags is displayed.-->
<head>
<title>Enter a title, displayed at the top of the window.</title>
@TuenTuenna
TuenTuenna / uiview+preview+ext.md
Created September 21, 2022 06:16
ios uikit UIView preview Ext
import Foundation
import UIKit

#if DEBUG
import SwiftUI

extension UIView {