Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion APPROBATION.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Approbation Matrix / PerseusGeoLocationKit 1.0.0 && 1.0.1 && 1.0.2 && 1.0.2 && 1.0.3 && 1.0.4 && 1.1.0 && 1.1.1
# Approbation Matrix / PerseusGeoLocationKit 1.0.0 && 1.0.1 && 1.0.2 && 1.0.2 && 1.0.3 && 1.0.4 && 1.1.0 && 1.1.1 && 1.1.2

> NOTE: To catch all log messages Mac Console should be started first then after a little while the logged app.

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Dates in this file meets Gregorian calendar. Date in format YYYY-MM-DD.

## [1.1.2] - [2025-12-14], PGK

### Added:

- Calculated property to ActionAlertText to simplify complex localization issues.

## [1.1.1] - [2025-11-30], PGK

### Updated
Expand Down
4 changes: 3 additions & 1 deletion PGKStar.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// PerseusGeoKitStar.swift
// Version: 1.1.1
// Version: 1.1.2
//
// Standalone PerseusGeoKit
//
Expand Down Expand Up @@ -892,6 +892,8 @@ public struct ActionAlertText {
self.buttonCancel = buttonCancel
self.buttonFunction = buttonFunction
}

public var titleCalculated: (() -> String)?
}

// MARK: - Alert for iOS
Expand Down
7 changes: 5 additions & 2 deletions PGKSupportingStar.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// PGKSupportingStar.swift
// Version: 1.1.1
// Version: 1.1.2
//
// PerseusGeoKit Support Code
//
Expand Down Expand Up @@ -70,7 +70,10 @@ var REDIRECT_ALERT_TITLES = ActionAlertText(

extension ActionAlertText {
var titleWithStatus: String {
return "Location Services: \(GeoAgent.currentStatus.description.capitalized)."
guard let status = titleCalculated else {
return "Location Services: \(GeoAgent.currentStatus.description.capitalized)."
}
return status()
}
}

Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// swift-tools-version:5.7

/* Package.swift
Version: 1.1.1
Version: 1.1.2

For iOS and macOS only. Use Stars to adopt for the specifics you need.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Actions Status](https://github.com/perseusrealdeal/PerseusGeoKit/actions/workflows/main.yml/badge.svg)](https://github.com/perseusrealdeal/PerseusGeoKit/actions/workflows/main.yml)
[![Style](https://github.com/perseusrealdeal/PerseusGeoKit/actions/workflows/swiftlint.yml/badge.svg)](https://github.com/perseusrealdeal/PerseusGeoKit/actions/workflows/swiftlint.yml)
[![Version](https://img.shields.io/badge/Version-1.1.1-green.svg)](/CHANGELOG.md)
[![Version](https://img.shields.io/badge/Version-1.1.2-green.svg)](/CHANGELOG.md)
[![Platforms](https://img.shields.io/badge/Platforms-macOS%2010.13+_|_iOS%2011.0+-orange.svg)](https://en.wikipedia.org/wiki/List_of_Apple_products)
[![Xcode 14.2](https://img.shields.io/badge/Xcode-14.2+-red.svg)](https://en.wikipedia.org/wiki/Xcode)
[![Swift 5.7](https://img.shields.io/badge/Swift-5.7-red.svg)](https://www.swift.org)
Expand Down
2 changes: 2 additions & 0 deletions Sources/PerseusGeoKit/Classes/RedirectActionAlert.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public struct ActionAlertText {
self.buttonCancel = buttonCancel
self.buttonFunction = buttonFunction
}

public var titleCalculated: (() -> String)?
}

// MARK: - Alert for iOS
Expand Down