/** @type {import('next').NextConfig} */
const nextConfig = {
async headers() {
return [
{
// matching all API routes
source: "/api/:path*",
headers: [๐
This file contains hidden or 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 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| var controller = StreamController<String>.broadcast(); | |
| var subscription01 = controller.stream; | |
| subscription01.listen( |
This file contains hidden or 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 'dart:async'; | |
| import 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| void main() async { | |
| // var firstUser = await getUserName(); | |
| // var secondUser = await getUserName(); | |
| // var thirdUser = await getUserName(); |
This file contains hidden or 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
| void main() async { | |
| print('์์'); | |
| var result1 = await someDelayAsyncFunction(); | |
| var result2 = await someDelayAsyncFunction(); | |
| someDelayAsyncFunction().then((result ){ | |
| }); |
// UIApplication ์ต์คํ
์
extension UIApplication {
func changeRoot(_ vc: UIViewController){
// ์ ํ๋ฆฌ์ผ์ด์
์์ ํค์๋์ฐ๋ก ์ฒซ๋ฒ์งธ ์๋์ฐ ์ฌ์ ๊ฐ์ ธ์ค๊ณ
let scenes = UIApplication.shared.connectedScenes
let windowScenes = scenes.first as? UIWindowScenehttps://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 = ""
NewerOlder