Hi All,
I create a Swift Package (Xcode 14.3) and add a package dependency (https://github.com/stephencelis/SQLite.swift) by copying the autogenerated dependency clause into my "Package.swift" file. The "package.resolved" file is created, all good.
Somehow I cannot use the package (SQLite) from my code because the "import SQLite" is not found. This happens from an empty package as well.
How can I use the dependent package in my own package?
Sorry for the seemingly simple question but despite a lot of googleing and fiddling with targets/products, I don't get this to work. UI options in Xcode to add targets etc. exist only for apps, not for packages.
Any hints what I am doing wrong here greatly appreciated.
Cheers
Florian
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi Everybody,
Using kerning or tracking on Text with negative values reduces the space between characters. Unfortunately, this also effects the trailing end of the text, which is then cropped.
This is the expected behaviour according to Apple's documentation (https://developer.apple.com/documentation/swiftui/text/kerning(_:)) but not really what is intended (by me, at least) and looks rather weird (see example in the docs where 'raffle' is cropped).
How to use kerning/tracking with negative values without cropping trailing characters? Any easy fix for that?
Thanks!
Dear All,
I am using ImageRenderer (as well documented, i.e. here https://danielsaidi.com/blog/2022/06/20/using-the-swiftui-imagerenderer) to create images from views. This works fine with Views containing Texts and Images but fails as soon as there is a Form in the View.
Failing means that the output is simply empty, no placeholder image is displayed as suggested by Apple documentation (https://developer.apple.com/documentation/swiftui/imagerenderer) and I am not using AppKit or UIKit.
Any suggestions of how to create image snapshots from more 'complex' Views containing Forms and Sections?
Any help appreciated.
Cheers
Dear All,
I want to maximise an Image above a Form. That should be easy enough but with the naive code, the Form is pushed out of the screen. I don't want to allow scrolling.
This is my code:
Image(systemName: "gear")
.resizable()
.scaledToFit()
Form {
Section("section 1") {
Text("text 1")
Text("text 2")
Text("text 3")
}
Section("section 2") {
Text("text 1")
Text("text 2")
Text("text 3")
}
}
.scrollDisabled(true)
Any hint on how to achieve that the Form is fully displayed and the Image dynamically maximised in the space that is left?
Thanks in advance!
Cheers
F
Dear All,
Going through the list of currency codes in
Locale.commonISOCurrencyCodes
the following expression returns currency names
Locale.autoupdatingCurrent.localizedString(forCurrencyCode: currencyCode)
Surprisingly, this expression does not return names for some of the most common currency codes like EUR, USD and other.
How do I get a full list of names?
Any hint appreciated!