Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F14172087
Bundle+AppVersion.swift
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
593 B
Subscribers
None
Bundle+AppVersion.swift
View Options
import
Foundation
private
struct
InfoPlistConstants
{
static
let
versionNumber
=
"CFBundleShortVersionString"
static
let
buildNumber
=
"CFBundleVersion"
}
extension
Bundle
{
public
var
appMarketingVersion
:
String
{
guard
let
result
=
infoDictionary
?[
InfoPlistConstants
.
versionNumber
]
as
?
String
else
{
return
"⚠️"
}
return
result
}
public
var
appBuildVersion
:
String
{
guard
let
result
=
infoDictionary
?[
InfoPlistConstants
.
buildNumber
]
as
?
String
else
{
return
"⚠️"
}
return
result
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 2, 2:47 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3673036
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment