Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
rlepinski committed Nov 29, 2022
1 parent 0a8caad commit 0e5c580
Show file tree
Hide file tree
Showing 133 changed files with 4,421 additions and 4,433 deletions.
2 changes: 1 addition & 1 deletion .swift-format.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"indentation" : {
"spaces" : 4
},
"indentConditionalCompilationBlocks" : true,
"indentConditionalCompilationBlocks" : false,
"indentSwitchCaseLabels" : false,
"lineBreakAroundMultilineExpressionChainComponents" : true,
"lineBreakBeforeControlFlowKeywords" : false,
Expand Down
18 changes: 9 additions & 9 deletions Airship Sample/Airship Sample/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import AirshipPreferenceCenter
import UIKit

#if canImport(ActivityKit)
import ActivityKit
import ActivityKit
#endif

class AppDelegate: UIResponder, UIApplicationDelegate, DeepLinkDelegate,
Expand Down Expand Up @@ -43,16 +43,16 @@ class AppDelegate: UIResponder, UIApplicationDelegate, DeepLinkDelegate,
}

#if canImport(ActivityKit)
if #available(iOS 16.1, *) {
Task {
await Airship.channel.restoreLiveActivityTracking {
restorer in
await restorer.restore(
forType: Activity<DeliveryAttributes>.self
)
}
if #available(iOS 16.1, *) {
Task {
await Airship.channel.restoreLiveActivityTracking {
restorer in
await restorer.restore(
forType: Activity<DeliveryAttributes>.self
)
}
}
}
#endif

return true
Expand Down
48 changes: 24 additions & 24 deletions Airship Sample/Airship Sample/HomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Combine
import SwiftUI

#if canImport(AirshipDebug)
import AirshipDebug
import AirshipDebug
#endif

struct HomeView: View {
Expand Down Expand Up @@ -70,18 +70,18 @@ struct HomeView: View {
Divider()

#if canImport(ActivityKit)
if #available(iOS 16.1, *) {
NavigationLink(
destination: LiveActivityManagementView(),
tag: HomeDestination.liveactivities,
selection: self.$appState.homeDestination
) {
Text("Live Activities!")
.foregroundColor(.accentColor)
.multilineTextAlignment(.leading)
.frame(maxWidth: .infinity, alignment: .leading)
}
if #available(iOS 16.1, *) {
NavigationLink(
destination: LiveActivityManagementView(),
tag: HomeDestination.liveactivities,
selection: self.$appState.homeDestination
) {
Text("Live Activities!")
.foregroundColor(.accentColor)
.multilineTextAlignment(.leading)
.frame(maxWidth: .infinity, alignment: .leading)
}
}
#endif
}
}
Expand Down Expand Up @@ -163,18 +163,18 @@ struct HomeView: View {
@ViewBuilder
private func makeSettingLink() -> some View {
#if canImport(AirshipDebug)
NavigationLink(
destination: AirshipDebugView(),
tag: HomeDestination.settings,
selection: self.$appState.homeDestination
) {
Image(systemName: "gear")
.resizable()
.scaledToFit()
.foregroundColor(.accentColor)
.padding(10)
.frame(width: 44, height: 44)
}
NavigationLink(
destination: AirshipDebugView(),
tag: HomeDestination.settings,
selection: self.$appState.homeDestination
) {
Image(systemName: "gear")
.resizable()
.scaledToFit()
.foregroundColor(.accentColor)
.padding(10)
.frame(width: 44, height: 44)
}
#endif
}

Expand Down
Loading

0 comments on commit 0e5c580

Please sign in to comment.