
남은 기기 용량을 알아야 할 일이 생겨서 찾아봤더니.. func deviceRemainingFreeSpaceInBytes() -> Int64? { let documentDirectory = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).last! guard let systemAttributes = try? FileManager.default.attributesOfFileSystem(forPath: documentDirectory), let freeSize = systemAttributes[FileAttributeKey.systemFreeSize] as? NSNumber else { // something fai..
iOS
2023. 11. 13. 11:14
TAG
- swift 공부
- fastlane
- Swift
- swift delegate
- np-hard
- Xcode
- swift3
- IOS
- WidgetKit
- Git
- 회고
- Combine
- 스위프트 문법
- 제이슨 파싱
- swift sort
- Accessibility
- WWDC
- UIBezierPath
- github
- iOS delegate
- actor
- FLUTTER
- swift tutorial
- WKWebView
- swift array
- np-complete
- ios 13
- 피아노
- SwiftUI
- 스위프트
글 보관함
반응형
- Total
- Today
- Yesterday