Post

Replies

Boosts

Views

Activity

Reply to Safari Crashing on MacBook
Which version of Safari ? Latest is Version 15.0 (16612.1.29.41.4, 16612) If Safari can't open, you can get it be looking at informations on Safari in Application Folder. If you have not the latest version, you may try to update. Look at Appstore updates in the Apple Menu.
Topic: Safari & Web SubTopic: General Tags:
Oct ’21
Reply to iPad Pro iPadOS 15.0.2 Orientation Changes Not working
Did you notice in doc for enum UIInterfaceOrientation: Starting in iOS 8, you should employ the UITraitCollection and UITraitEnvironmentAPIs, and size class properties as used in those APIs, instead of using UIInterfaceOrientation constants or otherwise writing your app in terms of interface orientation. You may have to set keys in info.plist ?
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to iPad Pro iPadOS 15.0.2 Orientation Changes Not working
Could you show 2 screens on iPad, before and after rotation ? Please, reduce the size on the screen capture (in Preview) by a factor of 3 at least, to avoid huge image in the forum). Note: why not support iPad deployment ? I tested in simulator (iPad OS 15) your code on an app that I restricted to iPhone only: I have created a button : @IBAction func testAlert(_ sender: Any) { ScreenOrientationManager.shared.rotateScreen() } Note :     @discardableResult is not needed before rotation: After rotation by tapping button (device does not rotate of course in simulator, but content does). We see the content as rotated, as required for iPhone If I rotate iPad, I get the correct display. Is it what you expect ?
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to PDF Broken issue iOS 15.0
There are many issues reported: https://developer.apple.com/forums/thread/691512 Did it work in iOS 14 ? You should also file a bug report, that may speed up correction. Note: you should use code formatter tool to present code. In similar case, I add a prepare statement : render.setValue(NSValue(cgRect: page), forKey: "paperRect") render.setValue(NSValue(cgRect: printable), forKey: "printableRect") // 4. Create PDF context and draw let pdfData = NSMutableData() render.prepare(forDrawingPages: NSMakeRange(0, render.numberOfPages)) // <<-- I ADD THIS UIGraphicsBeginPDFContextToData(pdfData, CGRect(x:0,y:0,width: 595.2,height:841), nil) for i in 1...render.numberOfPages { UIGraphicsBeginPDFPage() let bounds = UIGraphicsGetPDFContextBounds() render.drawPage(at: i-1, in: bounds) } UIGraphicsEndPDFContext();
Oct ’21
Reply to IOKit: Retrieving USB Name, Vendor ID and Product ID after Serial Connection.
I did it this way: func findRemovableVolumes() -> [URL] { var allMountedURL = [URL]() let keys: [URLResourceKey] = [.volumeNameKey, .volumeIsRemovableKey, .volumeIsEjectableKey] let paths = FileManager().mountedVolumeURLs(includingResourceValuesForKeys: keys, options: []) if let urls = paths { for url in urls { let components = url.pathComponents if components.count > 1 && components[1] == "Volumes" { allMountedURL.append(url) } } } return allMountedURL } let allMountedURLIncludingDMG = findRemovableVolumes() for url in allMountedURLIncludingDMG { let (serial, capa, vendor) = getSerialAndSize(url) But eskimo may have proposed a simpler way of getting this.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to iOS15 UIDatePicker shows strange year
I tested your code in an app. I get a correct 2021 date as shown below: But you're right, when I select a date, I get a different year (and month) I did the same test with Xcode 12 / iOS 14.4 and got the same problem. So it is not an iOS 15 bug. I removed datePicker.calendar = Calendar(identifier: .chinese) And it worked well. It is not a bug. The reason is that chinese calendar is sexagenary based. If you don't specify era, you get a value between 1 and 60 ! So, setting calendar to .chinese make you display dates (as at top left of the view) in the current era. Read this: https://stackoverflow.com/questions/60936744/how-to-convert-gregorian-dates-to-chinese-not-sexagenary-cycle-in-swift "What is the Month and Day of Chinese New Year for a Gregorian year?". In my journey I learned that the Chinese calendar follows the sexagenary cycle of 60year eras. Era is an important concept because you need to use it to get to the right Gregorian year. Not specifying the an Era on the Chinese calendar will return a Month and Day in the current Era which began in 1984.
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’21
Reply to Safari Crashing on MacBook
Which version of Safari ? Latest is Version 15.0 (16612.1.29.41.4, 16612) If Safari can't open, you can get it be looking at informations on Safari in Application Folder. If you have not the latest version, you may try to update. Look at Appstore updates in the Apple Menu.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Safari Crashing on MacBook
Did you try to install Safari Technology Preview ? That could allow you to wait for the next MacOS update that will also install a new version of Safari.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to 15% apple cut
I checked again today. It is still 30% in Europe.
Replies
Boosts
Views
Activity
Oct ’21
Reply to 15% Apple Cut
Note that the 15% does not apply worldwide (not in Europe for instance).
Replies
Boosts
Views
Activity
Oct ’21
Reply to Cannot find type 'configuration' in scope
Don't you need to import StoreKit ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to iPad Pro iPadOS 15.0.2 Orientation Changes Not working
Did you notice in doc for enum UIInterfaceOrientation: Starting in iOS 8, you should employ the UITraitCollection and UITraitEnvironmentAPIs, and size class properties as used in those APIs, instead of using UIInterfaceOrientation constants or otherwise writing your app in terms of interface orientation. You may have to set keys in info.plist ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Cannot find type 'configuration' in scope
I tested. adding import StoreKit does not solve the error. I looked rapidly at the GitHub. They have another import: @_spi(STP) import StripeCore But could not find how to import it.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to iPad Pro iPadOS 15.0.2 Orientation Changes Not working
Could you show 2 screens on iPad, before and after rotation ? Please, reduce the size on the screen capture (in Preview) by a factor of 3 at least, to avoid huge image in the forum). Note: why not support iPad deployment ? I tested in simulator (iPad OS 15) your code on an app that I restricted to iPhone only: I have created a button : @IBAction func testAlert(_ sender: Any) { ScreenOrientationManager.shared.rotateScreen() } Note :     @discardableResult is not needed before rotation: After rotation by tapping button (device does not rotate of course in simulator, but content does). We see the content as rotated, as required for iPhone If I rotate iPad, I get the correct display. Is it what you expect ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to PDF Broken issue iOS 15.0
There are many issues reported: https://developer.apple.com/forums/thread/691512 Did it work in iOS 14 ? You should also file a bug report, that may speed up correction. Note: you should use code formatter tool to present code. In similar case, I add a prepare statement : render.setValue(NSValue(cgRect: page), forKey: "paperRect") render.setValue(NSValue(cgRect: printable), forKey: "printableRect") // 4. Create PDF context and draw let pdfData = NSMutableData() render.prepare(forDrawingPages: NSMakeRange(0, render.numberOfPages)) // <<-- I ADD THIS UIGraphicsBeginPDFContextToData(pdfData, CGRect(x:0,y:0,width: 595.2,height:841), nil) for i in 1...render.numberOfPages { UIGraphicsBeginPDFPage() let bounds = UIGraphicsGetPDFContextBounds() render.drawPage(at: i-1, in: bounds) } UIGraphicsEndPDFContext();
Replies
Boosts
Views
Activity
Oct ’21
Reply to Where does the money go ?
Go to AppStoreConnect Select "Contractual and bank info" (last icon): Then select Bank Information Click on the name of the account (in the first column )to view or edit its content:
Replies
Boosts
Views
Activity
Oct ’21
Reply to App Store Review Guidelines 5.1.1 (ix) - Account delete requirement for banking apps
To propose such an app you must be a banking organisation ; so I suppose you are. Do you create the bank account within the app ? Or do you just provide an access to the account ? My understanding is that you have to allow delete from the app what you created from the app.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to iPad Pro iPadOS 15.0.2 Orientation Changes Not working
A difference: I have not the key Requires full screen in info.plist. Have you defined constraints ? If that's a small project, could you send it ? Post temporarily an email address here to send a zip of the complete project folder.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to IOKit: Retrieving USB Name, Vendor ID and Product ID after Serial Connection.
I did it this way: func findRemovableVolumes() -> [URL] { var allMountedURL = [URL]() let keys: [URLResourceKey] = [.volumeNameKey, .volumeIsRemovableKey, .volumeIsEjectableKey] let paths = FileManager().mountedVolumeURLs(includingResourceValuesForKeys: keys, options: []) if let urls = paths { for url in urls { let components = url.pathComponents if components.count > 1 && components[1] == "Volumes" { allMountedURL.append(url) } } } return allMountedURL } let allMountedURLIncludingDMG = findRemovableVolumes() for url in allMountedURLIncludingDMG { let (serial, capa, vendor) = getSerialAndSize(url) But eskimo may have proposed a simpler way of getting this.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to iOS15 UIDatePicker shows strange year
I tested your code in an app. I get a correct 2021 date as shown below: But you're right, when I select a date, I get a different year (and month) I did the same test with Xcode 12 / iOS 14.4 and got the same problem. So it is not an iOS 15 bug. I removed datePicker.calendar = Calendar(identifier: .chinese) And it worked well. It is not a bug. The reason is that chinese calendar is sexagenary based. If you don't specify era, you get a value between 1 and 60 ! So, setting calendar to .chinese make you display dates (as at top left of the view) in the current era. Read this: https://stackoverflow.com/questions/60936744/how-to-convert-gregorian-dates-to-chinese-not-sexagenary-cycle-in-swift "What is the Month and Day of Chinese New Year for a Gregorian year?". In my journey I learned that the Chinese calendar follows the sexagenary cycle of 60year eras. Era is an important concept because you need to use it to get to the right Gregorian year. Not specifying the an Era on the Chinese calendar will return a Month and Day in the current Era which began in 1984.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Rectangle detection is not working correct on iOS 15
What do you get as return ? nil or wrong rectangleFeatures ? I'm not familiar with it. Where do you specify the aspect ratio ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21