Profile Photo
I watched this for the first time on a plan ride yesterday. During the session it was stated there is a technique that can replace reachabilty:   "There is one case we've seen with developers which does make sense which is if you're going to have the user answer a lot ofinformation in a form, you may not want to waste the user's time if you have… (Show more)
in Networking
Profile Photo
I'm working on an app where we'd like to enable UIFileSharingEnabled for most clients, but for a few it would be undesirable (or forbidden).   Curious to find out if its possible to tag a folder within Documents such that it would not be visible to a Mac Finder.   Thanks!
in Files and Storage
Profile Photo
Xcode 11.4, iPad 9.7", latest iOS   I have a memory leak. So I launch my app on my iPhone and if I do a set of operations the leak shows. Great.   So I launch the app - its just sitting at the first screen. Nothing apparently is going on. I'm in the mini Memory view in Xcode. I tap the button to transfer it to Instruments, which is running… (Show more)
in Performance Tools
Profile Photo
Combine has two related functions that support "demand", where Subscribers inform Publishers on the desired number of elements passed to them in a "receive" function. The below ignores infinite demand.   1) func request(_ demand: Subscribers.Demand) Subscriptions provide this function, and as the Apple Docs say:   "Tells a publisher that it may… (Show more)
in Swift
Profile Photo
This topic was touched on in the notes for the WWDC 2019 session on Binary Frameworks - I even watched the whole video but it wasn't covered there.   It appears I should be able to wrap a static library - one that is created by its own (complex) build scripts - and have iOS, iOS Simulator and macOS versions. Also, that the header files can be… (Show more)
in Apple LLVM Compiler
Profile Photo
I have a Swift Package, all Swift. I have a unit text file (XCTestCase). If I select "Test" using the button in the Window Title Bar, it works fine.   If I select the diamond shaped button under the "Test Navigator", either the File Name itself, or a test within the file, Xcode acts like it ran the test, but there is no test console output - just… (Show more)
in Testing and Code Coverage
Profile Photo
In real life code, I want to have a defer issued "up top" of a method, but in one edge case I'd like to have another defer that runs before the original one (now thinking about this I may be able to solve it in a traditional sense).   I saw something online that suggested using 'defer { defer { <code> } }' In fact that does work, but generates a… (Show more)
in Swift
Profile Photo
I'm using an open source library (libturbojpeg), and the library has been built more or less the same for years. The 2.0.2 version links fine for Device and Simulator in both Xcode 11.3 and 11.4.1-beta.   But newer releases generate warnings in 11.3 when using 2.0.3 or newer (for example):   ld: warning: building for iOS Simulator, but linking in… (Show more)
in Apple LLVM Compiler
Profile Photo
Hi   I've started looking at running my iPad app in macOS 10.15 using Xcode 11.  I've run through the steps to add Mac support but when I build it complains that some of the libraries I use at link time are compiled for macOS and not "UIKit for Mac".  Surely they are both x64 architecture so I'm slightly confused.  I can't find any documentation… (Show more)
in macOS 10.15 beta
Profile Photo
Feedback FB7556677   This is my code:   private lazy var  pmC = NWPathMonitor(requiredInterfaceType: .cellular)… (Show more)
in Networking
Profile Photo
I can create an instance of NWPathMonitor to monitor a single type of interface (WIFI, cellular, etc) via a labeled init, or I can monitor the overall system (all interfaces) using "init()".   Great! That's what I want to know - is there any interface to the internet that's "satisfiled". The only way to get status is listen for updates by… (Show more)
in Networking
Load more items