/** @type {import('next').NextConfig} */
const nextConfig = {
async headers() {
return [
{
// matching all API routes
source: "/api/:path*",
headers: [
https://spangle-wedelia-2dc.notion.site/Swift-Tip-of-the-day-c428bfd990674bcfa2a4973e5d08c4eb
참고링크: https://stackoverflow.com/questions/27991378/swift-optional-binding-with-tuples
//if case let (user?, pass?) = (user, pass) { }
extension Optional {
struct Model {
var id : Int
var name : String
}
var modelArray = [
Model(id: 0, name: "하하"),
import Foundation
import Combine
class TestVM : ObservableObject {
@Published var password : String = ""
- JSON
- endpoint
- RESTFul API
- URLSession
<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>
import Foundation
import UIKit
#if DEBUG
import SwiftUI
extension UIView {
NewerOlder