Post

Replies

Boosts

Views

Activity

Reply to SwiftUI view printout on paper
Got it working. I wrapped my SwiftUI View to be printed(and displayed) in a local function like this: private func generateView() -> some View { VStack { .... } } Then I created a func to save the some View as a PDF in the document directory using ImageRenderer. The func also returns the PDF's URL which was created using URL.documentsDirectory.appending(path:) Then I created another func using UIPrintInteractionController and the PDF's URL to present the print controller for the saved pdf.
3w
Reply to Native SVG support
SVG files have been added as of Xcode 12. From Apple's Xcode 12 release notes: Asset Catalogs New Features Added support for Scalable Vector Graphic (SVG) image assets. These preserve their vector representation with deployment targets of macOS 10.15 or later, iOS 13 or later, and iPadOS 13 or later. (18389814)
Jun ’20
Reply to can I use svg image file in xcode?
Yes, as of Xcode 12. From Apple's Xcode 12 release notes: Asset Catalogs New Features Added support for Scalable Vector Graphic (SVG) image assets. These preserve their vector representation with deployment targets of macOS 10.15 or later, iOS 13 or later, and iPadOS 13 or later. (18389814)
Jun ’20
Reply to thread 1 : signal SIGABRT
"Invalid parameter not satisfying: [name length] > 0"This error message occurred when I removed the value for key "Storyboard Name" in Xcode 11's info.plist. I was attempting to remove references to Main.storyboard and create the storyboards programmatically. The solution for me was to remove the "Storyboard Name" key/value altogether or add a value to "Storyboard Name" depending on the situation.info.plist/Application Scene Manifest/ Scene Configuration / Application Session Role / Item 0 / Storyboard Name
Jun ’20