
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 import SwiftUI struct ContentView: View { @State private var myString = "hello world" @State private var showPlaceHolder = false var body: some View { VStack{ VStack{ Image(systemName: "person") .resizable() .frame(width: 100, height: 100) .clipShape(Circle()) .overlay(Circle().stroke()) Text(myString).padding..

- Grid : CollectionView 와 비슷, 바둑판 배열 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 import SwiftUI struct ContentView: View { var columns:[GridItem] { [GridItem(.fixed(100))] } var body: some View { ScrollView(.vertical){ ScrollView(.horizontal){ LazyHGrid(rows:..

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 import Foundation import UIKit import WebKit class WebViewController: UIViewController, WKNavigationDelegate{ @IBOutlet weak var WebView: WKWebView! var url = "https://google.com" override func viewDidLoad() { let stringToURL = URL(string: url) self.WebView.navigationDelegate = self self.WebView.load(URLRequest(url: stringToURL!)) } ..

예제 코드 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 import SwiftUI struct ContentView: View { @State private var isShowAlert = false @State private var selectText = "x" var body: some View { VStack{ Button("show alert") { isShowAlert.toggle() } .alert(isPresented: $isShowAlert, content: { let primaryButton = Alert.Button.d..

예제 코드 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 import SwiftUI struct ContentView: View { var body: some View { VStack{ Text("Main Title!") .font(.largeTitle) .foregroundColor(.black) .bold() .padding(.bottom, 20) // 일반 스타일 Text("Sub Title!") .modifier(textSty..

예제 코드 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 import SwiftUI struct Animal: Identifiable{ let id = UUID() let name: String let index: Int } struct ContentView: View { var animalList = [ Animal(name: "dog", index: 3), Animal(name: "dog", index: 1), Animal(name: "do..
- Total
- Today
- Yesterday
- 면접질문
- XcodeBuildSystem
- CLANG
- 메모리 순환참조
- dfs
- 생명 주기
- XCFramework
- BFS
- 의존관계역전법칙
- 클린 코드 정리
- 클린 코드 줄거리
- 알고리즘
- 의존성
- Swift
- clean code
- 여행경로
- clean code 정리
- 이분탐색
- ios
- 단어변환
- 주입
- swiftc
- 링커
- 클린 코드
- 순환참조
- ios simulator
- 학교 과제
- 전처리기
- SwiftUI
- 프로그래머스
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |