You can use the sprintf
format parameters within NSLocalizedString
, so your example can look like this:
let myString = String(format: NSLocalizedString(" - %d Notifica", comment: "sottotitolo prescrizione per le notifiche al singolare"), count)
More Related Contents:
- What’s NSLocalizedString equivalent in Swift?
- How to force NSLocalizedString to use a specific language
- How can I change locale programmatically with Swift
- What is the second parameter of NSLocalizedString()?
- Getting the difference between two Dates (months/days/hours/minutes/seconds) in Swift
- Fatal error: unexpectedly found nil while unwrapping an Optional values [duplicate]
- Save Struct to UserDefaults
- SwiftUI – Multiple Buttons in a List row
- Xcode iOS 8 Keyboard types not supported
- SwiftUI NavigationLink loads destination view immediately, without clicking
- How to assign an action for UIImageView object in Swift
- How to use AVCapturePhotoOutput
- How to call gesture tap on UIView programmatically in swift
- How to use Namespaces in Swift?
- Date to milliseconds and back to date in Swift
- How to add “Done” button to Numpad in iOS using Swift?
- How do I set adaptive multiline UILabel text?
- How to change UISearchBar Placeholder and image tint color?
- Detect volume button press
- How can I color a UIImage in Swift?
- Attack button in SpriteKit
- iOS and FirebaseCrashlytics
- “No such module ‘Alamofire'” Xcode won’t recognize Alamofire framework
- How to convert bytes to a float value in swift?
- Why can’t I call the default super.init() on UIViewController in Swift?
- Can’t Load UIViewController XIB file in Storyboard in Swift
- Swift 3: Unrecognized selector sent to instance Xcode 8 [duplicate]
- Can we detect whether a user left through the home button or lock button without listening to darwin notifications?
- UIDevice currentDevice model possible values
- google maps iOS SDK: custom icons to be used as markers