- 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 {
extension Date {
static func -(recent: Date, previous: Date) -> (month: Int?, day: Int?, hour: Int?, minute: Int?, second: Int?) {
let day = Calendar.current.dateComponents([.day], from: previous, to: recent).day
let month = Calendar.current.dateComponents([.month], from: previous, to: recent).month
let hour = Calendar.current.dateComponents([.hour], from: previous, to: recent).hour
let minute = Calendar.current.dateComponents([.minute], from: previous, to: recent).minute
let second = Calendar.current.dateComponents([.second], from: previous, to: recent).second
참고문서
- https://docs.swift.org/swift-book/ReferenceManual/GenericParametersAndArguments.html
- https://docs.swift.org/swift-book/ReferenceManual/GenericParametersAndArguments.html
import UIKit
var greeting = "Hello, playground"
import SwiftUI
@main
struct ScenePhaseApp: App {
@Environment(\.scenePhase) var scenePhase
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
domains: [
'www.notion.so',
'images.unsplash.com',
's3.us-west-2.amazonaws.com'
],