Post

Replies

Boosts

Views

Activity

Reply to Dynamic type & custom font
Just found that the following code does the trick, it just needs amending to include traits:     class func preferredCustomFont(for fontFamily: String, andTextStyle textStyle: UIFont.TextStyle) - UIFont {         let systemFontDescriptor = UIFontDescriptor.preferredFontDescriptor(withTextStyle: textStyle)         let customFontDescriptor = UIFontDescriptor.init(fontAttributes: [             UIFontDescriptor.AttributeName.family: fontFamily,             UIFontDescriptor.AttributeName.size: systemFontDescriptor.pointSize // use the font size of the default dynamic font         ])         // return font of new family with same size as the preferred system font         return UIFont(descriptor: customFontDescriptor, size: 0)     }
Topic: UI Frameworks SubTopic: UIKit Tags:
Apr ’21
Reply to IOS document icon not appearing
After much experimenting and googling I came across the answer to this. The answer is as follows: <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.data</string> </array> <key>UTTypeDescription</key> <string>Writing Shed Data</string> <key>UTTypeIconFiles</key> <array> <string>writingshed.png</string> </array> <key>UTTypeIdentifier</key> <string>www.writing-shed.comuk.Writing-Shed.data</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename-extension</key> <array> <string>wsd</string> </array> </dict> </dict> </array> <key>UTImportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.data</string> </array> <key>UTTypeDescription</key> <string>Writing Shed Data</string> <key>UTTypeIconFiles</key> <array> <string>writingshed.png</string> </array> <key>UTTypeIdentifier</key> <string>www.writing-shed.comuk.Writing-Shed.data</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename-extension</key> <array> <string>wsd</string> </array> </dict> </dict> </array>
Topic: Media Technologies SubTopic: General Tags:
Oct ’21
Reply to Provisioning profile failed qualification
I select the archive in the Xcode organiser and click Distribute App. Choose App Store connect click next choose upload chick next choose upload symbols and manage version number 7 click next 8 Choose automatically manage signing 9. click next 10 Fails with Provisioning profile failed qualification/Profile doesn't include the selected signing certificate.
Oct ’22
Reply to Defining Transformer for NSAttributedString
I think the issue might be because I am using custom attributes. It is ok if none are present.
Replies
Boosts
Views
Activity
Mar ’21
Reply to NSAttributed string issue
Thanks for your response. I had indeed set an incorrect attribute. One of those stupid mistakes you can stare at for hours and not see!!
Replies
Boosts
Views
Activity
Apr ’21
Reply to Dynamic type & custom font
Just found that the following code does the trick, it just needs amending to include traits:     class func preferredCustomFont(for fontFamily: String, andTextStyle textStyle: UIFont.TextStyle) - UIFont {         let systemFontDescriptor = UIFontDescriptor.preferredFontDescriptor(withTextStyle: textStyle)         let customFontDescriptor = UIFontDescriptor.init(fontAttributes: [             UIFontDescriptor.AttributeName.family: fontFamily,             UIFontDescriptor.AttributeName.size: systemFontDescriptor.pointSize // use the font size of the default dynamic font         ])         // return font of new family with same size as the preferred system font         return UIFont(descriptor: customFontDescriptor, size: 0)     }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’21
Reply to Unable to generate DocC documentation
I have tried building documentation for the SlothCreator using Xcode 13 beta and Mac OS Monterey beta and it doesn't open the documentation window (as per the demo). It just opens the Developer Documentation window. I guess that the developers have a later version of Xcode to be released rsn.
Replies
Boosts
Views
Activity
Jun ’21
Reply to IOS document icon not appearing
After much experimenting and googling I came across the answer to this. The answer is as follows: <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.data</string> </array> <key>UTTypeDescription</key> <string>Writing Shed Data</string> <key>UTTypeIconFiles</key> <array> <string>writingshed.png</string> </array> <key>UTTypeIdentifier</key> <string>www.writing-shed.comuk.Writing-Shed.data</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename-extension</key> <array> <string>wsd</string> </array> </dict> </dict> </array> <key>UTImportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.data</string> </array> <key>UTTypeDescription</key> <string>Writing Shed Data</string> <key>UTTypeIconFiles</key> <array> <string>writingshed.png</string> </array> <key>UTTypeIdentifier</key> <string>www.writing-shed.comuk.Writing-Shed.data</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename-extension</key> <array> <string>wsd</string> </array> </dict> </dict> </array>
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to App Preview Issue
Fixed the issue. My preview had no soundtrack. Given that the App Store doesn't play sound I saw no point.
Replies
Boosts
Views
Activity
Jun ’22
Reply to Provisioning profile failed qualification
MacAppStore
Replies
Boosts
Views
Activity
Sep ’22
Reply to Provisioning profile failed qualification
When I chose distribute I also chose sign automatically. This is a process I always follow. The binary uploaded ok the day before. Suddenly this.
Replies
Boosts
Views
Activity
Sep ’22
Reply to Provisioning profile failed qualification
I select the archive in the Xcode organiser and click Distribute App. Choose App Store connect click next choose upload chick next choose upload symbols and manage version number 7 click next 8 Choose automatically manage signing 9. click next 10 Fails with Provisioning profile failed qualification/Profile doesn't include the selected signing certificate.
Replies
Boosts
Views
Activity
Oct ’22
Reply to App Review Rejection
The problem is that 4+ is the only option available - the rest are dimmed out.
Replies
Boosts
Views
Activity
Oct ’22
Reply to Machine reverted to Ventura
I clearly lost the plot!!
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’23
Reply to Problem compiling @Model
The problem is that the downloaded Xcode project is corrupt. I rebuilt the project from scratch using the sources from the download and it compiled OK. So, Apple, please check the download file.
Replies
Boosts
Views
Activity
Aug ’23
Reply to CoreData Transformable Types and SecureCoding
You need to add an example of your code.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to Nightmare testing with Xcode 15.3 beta 3
I'd no sooner sent this than I tried testing with an iPhone Pro 17.4 instead of the pro max. That worked although it behaved strangely at first. At least I have unstopped the show.
Replies
Boosts
Views
Activity
Feb ’24
Reply to WWDC23 flashcard app
Found a copy in a backup
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
May ’24