Skip to content

Commit

Permalink
Clean up before posting
Browse files Browse the repository at this point in the history
Did a few cleanup tasks to prepare for posting:

* Added missing copyright headers and removed crufty default ones.
* Removed the extension on `Task` that's no longer being used.
* Added a frame constraint to the `SignInWithAppleButton` to stop
  getting runtime warnings logged by UIKit on newer iOS versions.
  • Loading branch information
shepazon authored and Laren-AWS committed Sep 26, 2024
1 parent b78e734 commit 7be4b1d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
283FA3A92C5D3697003CF6D9 /* IDString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 283FA3A82C5D3697003CF6D9 /* IDString.swift */; };
283FA3AB2C5D36BC003CF6D9 /* BucketsAppError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 283FA3AA2C5D36BC003CF6D9 /* BucketsAppError.swift */; };
286E157D2CA46392001D1009 /* SimpleKeychain in Frameworks */ = {isa = PBXBuildFile; productRef = 286E157C2CA46392001D1009 /* SimpleKeychain */; };
28FA46BE2C8A135700A2E959 /* Task-extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28FA46BD2C8A135700A2E959 /* Task-extension.swift */; };
28FA46C02C8A139900A2E959 /* LocalizedAlertError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28FA46BF2C8A139900A2E959 /* LocalizedAlertError.swift */; };
28FA46C22C8A145500A2E959 /* View-extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28FA46C12C8A145500A2E959 /* View-extension.swift */; };
/* End PBXBuildFile section */
Expand All @@ -32,7 +31,6 @@
283FA3A12C5D3590003CF6D9 /* ContentView-ViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ContentView-ViewModel.swift"; sourceTree = "<group>"; };
283FA3A82C5D3697003CF6D9 /* IDString.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IDString.swift; sourceTree = "<group>"; };
283FA3AA2C5D36BC003CF6D9 /* BucketsAppError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BucketsAppError.swift; sourceTree = "<group>"; };
28FA46BD2C8A135700A2E959 /* Task-extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Task-extension.swift"; sourceTree = "<group>"; };
28FA46BF2C8A139900A2E959 /* LocalizedAlertError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocalizedAlertError.swift; sourceTree = "<group>"; };
28FA46C12C8A145500A2E959 /* View-extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "View-extension.swift"; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -102,7 +100,6 @@
isa = PBXGroup;
children = (
283FA3A82C5D3697003CF6D9 /* IDString.swift */,
28FA46BD2C8A135700A2E959 /* Task-extension.swift */,
28FA46C12C8A145500A2E959 /* View-extension.swift */,
28FA46BF2C8A139900A2E959 /* LocalizedAlertError.swift */,
);
Expand Down Expand Up @@ -190,7 +187,6 @@
files = (
283FA3AB2C5D36BC003CF6D9 /* BucketsAppError.swift in Sources */,
283FA3952C5D34FF003CF6D9 /* ContentView.swift in Sources */,
28FA46BE2C8A135700A2E959 /* Task-extension.swift in Sources */,
283FA3A92C5D3697003CF6D9 /* IDString.swift in Sources */,
28FA46C22C8A145500A2E959 /* View-extension.swift in Sources */,
28FA46C02C8A139900A2E959 /* LocalizedAlertError.swift in Sources */,
Expand Down
9 changes: 3 additions & 6 deletions swift/example_code/apple/Buckets/Buckets/BucketsApp.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
//
// BucketsApp.swift
// Buckets
//
// Created by Shepherd, Eric on 8/2/24.
//
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import SwiftUI

/// The main SwiftUI entry point.
@main
struct BucketsApp: App {
var body: some Scene {
Expand Down
2 changes: 1 addition & 1 deletion swift/example_code/apple/Buckets/Buckets/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct ContentView: View {
}
}
// snippet-end:[siwa-button.swift]
.frame(height: 60)
.frame(maxWidth: 340, maxHeight: 58)
.keyboardShortcut(.defaultAction)
}
.padding()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
//
// LocalizedAlertError.swift
// Buckets
//
// Created by Shepherd, Eric on 9/5/24.
//
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import Foundation

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
//
// View-extension.swift
// Buckets
//
// Created by Shepherd, Eric on 9/5/24.
//
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import Foundation
import SwiftUI
Expand Down

0 comments on commit 7be4b1d

Please sign in to comment.