Using addObserver func of NotificationCenter.default, subscribing to UIApplication.willEnterForegroundNotification does not work when the backgrounding is triggered from Notification Center (swipe down from top when app is active to get Notification Center). It also seems that UIApplication.willResignActiveNotification is called twice, based on Print() logs, when Notification Center triggers the backgrounding.
If you background the app via lock screen or manual swipe, or switch to another app, the UIApplication.willEnterForegroundNotification does get called, so it seems to be specific to Notification Center.
UIApplication.willResignActiveNotification does fire correctly but then resuming the app never calls the appMovedToForeground func below:
notificationCenter.addObserver(self, selector: #selector(appMovedToForeground), name: UIApplication.willEnterForegroundNotification,object: nil)
occurs on: iOS 14.4.2, iPhone 11 & iOS 14.6, SE(2)
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Huge long list of simulators with UDID's. WHY?? Have seen this since Beta 4...see attached image.
I'm using nib files not Swift UI, and trying to get attributed text in a TextView to be localized as well as scale for accessibility - Dynamic Type specifically for larger fonts set in Settings -> Accessibility.
I haven't found anything in the Apple documentation, but I'm assuming attributed text is not supported in localization or accessibility. Does SwiftUI address this somehow? The "scaling fonts automatically" docs from Apple only mention using plain text in IB.
Has anyone found a workaround, fix or an elegant custom solution to handle this? 3rd party OSS framework??
My first thought is to build the attributable text programmatically, using localized strings, then scale up the font size programmatically based on PreferredContentSizeCategory from the traitCollectionDidChange() notification.
TIA.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Interface Builder
Xcode
Localization
Accessibility