Post

Replies

Boosts

Views

Activity

Localization issue?
I am doing localization using NSLocalizedString and it has issues when there is a number in line with a string. For example, when on a local build, String.localizedStringWithFormat("Points: %d”, 62) would return "Points: 62", but on the TestFlight build it returns "Points: -2,114,563,680".  All numbers behave this way with a different -2 billion number representing the number on screen.
1
0
716
Jul ’22
Recurring Leaderboard issues
I have been trying to create a recurring leaderboard for a couple weeks now but continually get an error message when trying to save them. "sorry can't fetch data from server". Anyone else see this or able to successfully create a recurring leaderboard recently? I can create classic ones just fine.
1
0
720
Jun ’22
Use Basic a of System Font
I'm developing an app that is to be used in school districts for learning to read, so I need the letter a in the font to be the "basic" A (the a you usually write in print, not the one you see in this font with the arch over the a). I could just find a different font, but I noticed in the Apple Notes app that the font appears to be the system font, but it uses the basic a. Is there a way to do this in my own app?
1
0
776
Sep ’20
Metal Core Image Filter does not Compile
In an application, I am using a Metal filter to remove the background from a playing video. Here is the filter's complete code: #include <metal_stdlib> #include <CoreImage/CoreImage.h> // includes CIKernelMetalLib.h extern "C" {     namespace coreimage {         float4 alphaFrame(sampler source, sampler mask) {             float4 color = source.sample(source.coord());             float opacity = mask.sample(mask.coord()).r;             return float4(color.rgb, opacity);         }     } } The problem is that, when compiling in Xcode 12 for iOS 14, two errors pop up about this file preventing the build from compiling: "/air-lld:1:1: symbol(s) not found for target 'air64-apple-ios13.0.0'" and "air-lld command failed with exit code 1 (use -v to see invocation)". If I comment out the filter, the build is able to compile as normal. How can I use this filter in my app and have it compile as well?
2
0
2.5k
Jun ’20
Content Offset of UICollectionLayoutSection Changes Unexpectedly
When creating a UICollectionVIew using Compositional Layout, the collection view's content offset changes whenever the trait collection changes, without being instructed by code. Also, the content size is changed unexpectedly. Here's the snippet of code for the section which appears to be causing the issues: func createNotificationSection() -> NSCollectionLayoutSection { let isWide = self.bounds.width > 500 let inset: CGFloat = isWide ? 10 : 8 let itemSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(1),heightDimension: .fractionalHeight(1)) let item = NSCollectionLayoutItem(layoutSize: itemSize) // item.contentInsets = NSDirectionalEdgeInsets(top: 20, leading: 8, bottom: 8, trailing: 8) let groupSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(isWide ? 0.475 : 0.85),heightDimension: .estimated(90))//(isWide ? 125 : 100) + 90)) let group = NSCollectionLayoutGroup.horizontal(layoutSize: groupSize, subitems: [item]) group.interItemSpacing = .fixed(inset) group.contentInsets = NSDirectionalEdgeInsets(top: 90, leading: 0, bottom: inset, trailing: 0) let section = NSCollectionLayoutSection(group: group) section.interGroupSpacing = inset section.orthogonalScrollingBehavior = .groupPagingCentered return section }
0
0
1.3k
Jun ’20
Trying to Install Big Sur Beta on Partitioned Drive fails
Last year, I was able to install the Catalina beta on a partition of my main MacBook Pro 15" 2016 Hard Drive, and use StartupDisk to effectively switch between the stable Mojave macOS and the beta Catalina based on these instructions from Apple - https://support.apple.com/en-us/HT208891. This year I attempted to do the same with Big Sur, but it is not working. Here are my steps: In Disk Utility, I created a new partition of my drive (I have tried with APFS and APFS encrypted formats, both have failed) I downloaded the macOSDeveloperBetaAccessUtility.dmg file from the Apple Developer beta download website - https://developer.apple.com/download/. I opened the disk image and opened the package inside and began to follow the instructions to install the Big Sur macOS profile, but when I got to the part of the processs where I could choose the Install location, it only showed Macintosh HD as a viable option, and my partition (which I named Big Sur) had an exclamation point reading "macOS Developer Beta Access Utility can't be installed on this disk. You can only install this software on the disk that is running macOS." Any guidance on where I am going wrong would be appreciated, or any other ways to download Big Sur on a partition. Thanks!
1
0
1.7k
Jun ’20