본문 바로가기

Programming

(144)
Rick and Morty API Rick And Morty 에니메이션의 캐릭터, 위치, 에피소트의 데이터베이스를 확인할 수 있는 API https://rickandmortyapi.com The Rick and Morty API The Rick and Morty API is a REST and GraphQL API based on the television show Rick and Morty rickandmortyapi.com REST API 관련 문서는 https://rickandmortyapi.com/documentation/ Documentation This documentation will help you get familiar with the resources of the Rick and Morty API and show you..
static library를 xcframework로 제작 M1 실리콘 지원을 위해 static library를 xcframework로 제작이 필요할 경우가 있습니다. 이를 위해 static library를 xcframework로 만드는 방법 공유 xcodebuild -create-xcframework \ -library /make_lib/arm64/sample.a \ -library /make_lib/arm64_x86_64-simulator/sample.a \ -output sample.xcframework 아래와 같이 xcframework로 생성 완료 됩니다. (-library의 path는 각 PC 환경에 맞게 지정)
You don’t (always) need [weak self] https://medium.com/@almalehdev/you-dont-always-need-weak-self-a778bec505ef You don’t (always) need [weak self] We will talk about weak self inside of Swift closures to avoid retain cycles & explore cases where it may not be necessary to capture self weakly. medium.com
애플 공식사이트에서 제공하는 SwiftUI 강좌 https://developer.apple.com/tutorials/swiftui
맥북 내 네트워크 속도제어 프로그램(Network Link Conditioner) Additional Tools for Xcode를 통해 제공하는 네트워크 속도제어 프로그램 https://nshipster.com/network-link-conditioner/ Network Link Conditioner App developers often forget to test how their apps perform under less-than-ideal networking environments. Learn how you can use the Network Link conditioner to simulate a spotty Internet connection on your device. nshipster.com 설치 완료 하게 되면 환경설정 하단에 다음과 같은 아이콘이 생기게 되며 이를 클릭 ..
swift argument parser를 통한 CLI 앱 생성 https://github.com/apple/swift-argument-parser GitHub - apple/swift-argument-parser: Straightforward, type-safe argument parsing for Swift Straightforward, type-safe argument parsing for Swift - GitHub - apple/swift-argument-parser: Straightforward, type-safe argument parsing for Swift github.com https://ichi.pro/ko/swift-argument-parserleul-sayonghayeo-myeonglyeong-jul-dogu-bildeu-1703203279450..
[Swift] allSatisfy(_:) method 컬렉션의 각 원소들이 특정 조건에 만족하는지 확인하는 method swift 4.2부터 제공 https://developer.apple.com/documentation/swift/array/2994715-allsatisfy https://github.com/apple/swift-evolution/blob/master/proposals/0207-containsOnly.md ex) let names = ["Sofia", "Camilla", "Martina", "Mateo", "Nicolás"] let allHaveAtLeastFive = names.allSatisfy({ $0.count >= 5 }) // allHaveAtLeastFive == true let numbers = [1, 3, 4, 11, 34..
iOS에서 NWPathMonitor를 통한 네트워크 검색 iOS 12 이전에는 Reachability 클래스를 통하여 iOS 내에서 인터넷 상태를 체크했었습니다. https://developer.apple.com/library/archive/samplecode/Reachability/Introduction/Intro.html Reachability Reachability Last Revision:Build Requirements:iOS SDK 8.0 or laterRuntime Requirements:iOS 8.0 or later Important: This document is no longer being updated. For the latest information about Apple SDKs, visit the documentation website...

반응형