Profile Photo
I'm struggling to get an app working on Catalina 10.15.2 using Xcode 11.3.1, Swift 5. I could manage to boil down an example of the crash for Xcode Playgrounds:   import Cocoa… (Show more)
in Swift
Profile Photo
Im trying to use this line of code:   func getFirstWeekDay() -> Int {         let day = ("\(currentYear)-\(currentMonthIndex)-01".date?.firstDayOfTheMonth.weekday)!         return day     }     but Im getting this error.. I dont know how else to write it.   Error: Cannot use optional chaining on non-optional value of type 'Any'
in Swift
Profile Photo
how can I get the data inside [ ] from api , some like "weather_descriptions":["Partly cloudy"]
in Swift
Profile Photo
Hi,   I have the issue (on iOS/iPadOS) once a NavigationLink was tapped/used it won't trigger the navigation again after navigating back. The most minimal code example would be:   struct ContentView: View {… (Show more)
in SwiftUI
Profile Photo
I have an app that I am updating since Apple made having a launch screen storyboard a must.  I have created the launchscreen storyboard and included all the launch images in my images.xcassets folder. The problem is that when the simulator loads the app in iPhone 8, 8+, iPad (7gen),iPad Air, iPad 9.7 the launch image is blank.  The included… (Show more)
in Interface Builder
Profile Photo
Hi Team, could you help me with this problem, I don’t understand what the problem is here, I’ve already read the relevant documentation, but still I don’t understand why it crashes on TestFlight but on my Xcode working well? Help me please!   And my report is simbolicated yet.   Incident Identifier: 00B2FC86-5057-4BB9-9F71-7F9345E9996D Beta… (Show more)
in Cocoa Touch
Profile Photo
I upgraded to Catalina on Monday January 13th and everything appears to be good. Tuesday the 14th I open Xcode 11.13.1 and update an iOS app. The only thing is, it now fails to build and all existing simulators are gone.   I deleted Xcode, remove everything from /Library/Developer/CoreSimulator/, empty the trash and reboot.   I installed Xcode… (Show more)
in Getting Started
Profile Photo
I have a mixed-language project that began in Objective-C, but later we started using Swift for new classes.   In the Objective-C code, there is a custom collection view cell with its own XIB file. When used from a view controller that is also in Obj-C, it works fine.   However, when we try to use the cell in a Swift view controller, we see this… (Show more)
in Swift
Profile Photo
We have changed the launch-screen of one of our iOS applications. We have replaced the old launch-screen with new launch-screen storyboard, with some interactive animated stuff on that. But, the old version of the launch-screen/image has got cached on existing devices i.e. devices of application users. After upgrade, these devices where always… (Show more)
in Cocoa Touch
Profile Photo
I want to create an app, where after the user adds some text and an image to a View, they have the ability to share that View in PDF format as a report.   Is there any simple way that a View can be converted / translated into a PDF without having to manually code all the relevant margines, etc.?   I am a novice developer, so any example code… (Show more)
in Cocoa Touch
Profile Photo
how do you turn on and off airplane mode with swift code?
in Swift
Load more items