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 import SwiftUI struct ContentView: View { @State private var proxy: ScrollViewProxy? @State private var indexID: String = "0" var body: some View{ VStack{ HStack{ Text("Insert Index : ") TextField("", text: $indexID) }.padding() Button("Scroll To #\(indexID)"){ withAni..
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 import SwiftUI struct ContentView: View { @State private var inputText = "" var body: some View{ VStack{ TextEditor(text: $inputText) .padding() .lineSpacing(20) .font(.title) .disableAutocorrection(true) .onChange(of: inputText, perform: { value in if inputText.count > 10 { inputText.removeLast() } }) Text("\(input..
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 import SwiftUI struct ContentView: View { @State private var isOn = false var body: some View { Toggle("\(isOn.description)", isOn: $isOn) .toggleStyle(CustomToggle()) .frame(width: 200, height: 50) } } struct ContentView_Previews: PreviewProvider { s..
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 import SwiftUI struct ContentView: View { var body: some View { TabView{ FirstView() .tabItem { Image(systemName: "person") Text("person") } SecondView() .tabItem { Image(systemName: "person.fill") Text("person.fill") } .edgesIgnoringSafeArea(.top) } } } struct FirstView: Vi..
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 import SwiftUI struct ContentView: View { init(){ let myAppearance = UINavigationBarAppearance() myAppearance.titleTextAttributes = [.foregroundColor : UIColor.blue, .font : UIFont.italicSystemFont(ofSize: 30)] myAppearance.largeTitleTextAttributes = [.foregroundColor : UIColor.purple] myAppe..
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!)) } ..
- Total
- Today
- Yesterday
- XcodeBuildSystem
- ios
- 학교 과제
- 단어변환
- 클린 코드 줄거리
- 의존성
- 클린 코드
- Swift
- XCFramework
- 주입
- 프로그래머스
- 링커
- 이분탐색
- 여행경로
- CLANG
- dfs
- SwiftUI
- 면접질문
- 생명 주기
- ios simulator
- 순환참조
- clean code
- 클린 코드 정리
- clean code 정리
- 알고리즘
- 전처리기
- swiftc
- BFS
- 의존관계역전법칙
- 메모리 순환참조
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |