minor improvements

This commit is contained in:
Isaac Greene 2022-08-08 17:41:07 -04:00
parent a0b834a505
commit 0dc0267dbd
12 changed files with 327 additions and 108 deletions

View file

@ -142,9 +142,9 @@
85AAA0D427FA2DD600F4B9A1 /* Splits */ = {
isa = PBXGroup;
children = (
859298C828592F1F00D9D6CB /* Documentation.docc */,
6AB17201286EB414005DED42 /* Splits.entitlements */,
85AAA0D527FA2DD600F4B9A1 /* SplitsApp.swift */,
859298C828592F1F00D9D6CB /* Documentation.docc */,
6A5CEC51287691BE003D876C /* ChangeLogView.swift */,
8502250D27FA5D0800FE8E95 /* ChangeLogData.swift */,
85AAA0D727FA2DD600F4B9A1 /* ContentView.swift */,

View file

@ -2,7 +2,7 @@
// ChangeLogData.swift
// Splits
//
// Created by Isaac Greene on 4/3/22.
// Created by Isaac Greene on 2022-04-03.
//
import SwiftUI
@ -10,6 +10,19 @@ import SwiftUI
struct July2022: View {
var body: some View {
ScrollView {
//2022-07-19
HStack {
VStack (alignment: .leading) {
Text("2022-07-19")
.font(.title2)
Text("Version 1.0.0\n")
.font(.footnote)
Text("\u{2022} Added required software licenses for the libraries I use, and changed the app's license from proprietary to 4-clause BSD")
}
Spacer()
}
.padding(30)
//2022-07-06
HStack {
VStack (alignment: .leading) {

View file

@ -2,7 +2,7 @@
// ChangeLogView.swift
// Splits
//
// Created by Isaac Greene on 4/3/22.
// Created by Isaac Greene on 2022-04-03.
//
import SwiftUI

View file

@ -2,7 +2,7 @@
// ContentView.swift
// Splits
//
// Created by Isaac Greene on 4/3/22.
// Created by Isaac Greene on 2022-04-03.
//
import SwiftUI
@ -10,7 +10,7 @@ import Foundation
/// Creates the primary tab of ``SplitsApp``
///
/// e
/// This view holds
struct ContentView: View {
enum Field {
case distance

View file

@ -2,38 +2,40 @@
// DocsView.swift
// Splits
//
// Created by Isaac Greene on 6/3/22.
// Created by Isaac Greene on 2022-06-03.
//
import SwiftUI
import LocalAuthentication
import CryptoKit
/// The system username SHA256 hash for the app
/// - Note: This is not a secure way to do it
/// or in any way good practice
/// but this is mainly to test out `SecureField`
/// The system username SHA512 hash for the app
let username = "c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec".utf8
/// The system password associated with ``username``
///
/// I'm thinking about hashing them, but that would take work.
///
/// It would be more secure though.
/// - Note: Just as with `username` you should not define
/// these unencrypted like they are right now.
/// The system password SHA512 hash associated with ``username``
let password = "3c9909afec25354d551dae21590bb26e38d53f2173b8d3dc3eee4c047e7ab1c1eb8b85103e3be7ba613b31bb5c9c36214dc9f14a42fd7a2fdb84856bca5c44c2".utf8
/// Holds the views and login for the Docs tab in-app
/// Holds the views and login for the Docs
///
/// Mostly just a long list of sections and calling views
/// - Note: New views are best called in this `struct`
/// and added to their respective categories
struct DocsView: View {
enum Field: Hashable {
case username
case password
}
/// Makes a SHA512 hash of any `String` passed as input
///
/// Specifically, this function is suited towards checking if
/// the username and password provided by the user
/// match the hashes of the correct ``username`` and ``password``
///
/// - Note: The results of this hash are not seen by the user, so they shouldn't even know
/// this is taking place
///
/// - Returns: A `String` of the computed SHA512 hash
func hashSHA512(login: String) -> String {
let loginAsData = Data(login.utf8)
let loginHashHex = SHA512.hash(data: loginAsData)
@ -51,6 +53,7 @@ struct DocsView: View {
List {
NavigationLink("Help", destination: HelpView())
NavigationLink("Change Log", destination: ChangeLog())
NavigationLink("Software Licenses", destination: LicenseView())
Section(header: Text("Features")) {
NavigationLink("New", destination: NewFeatures())
@ -64,9 +67,8 @@ struct DocsView: View {
NavigationLink("Low Priority", destination: LowPriority())
}
Section(header: Text("App Information")) {
NavigationLink("Software License", destination: LicenseView())
Text("Version: Prerelease Build LVSXT10a.4")
Text("Release date: 2022-07-06")
Text("Version: 1.0.0")
Text("Release date: 2022-07-19")
Text("Start date: 2022-03-25")
Link("Built with SwiftUI \(Image(systemName: "swift"))", destination: URL(string: "https://developer.apple.com/xcode/swiftui")!)
}

View file

@ -2,7 +2,7 @@
// FeaturesView.swift
// Splits
//
// Created by Isaac Greene on 6/3/22.
// Created by Isaac Greene on 2022-06-03.
//
import SwiftUI

View file

@ -2,7 +2,7 @@
// ModalView.swift
// Splits
//
// Created by Isaac Greene on 4/3/22.
// Created by Isaac Greene on 2022-04-03.
//
import SwiftUI

View file

@ -2,7 +2,7 @@
// KnownIssues.swift
// Splits
//
// Created by Isaac Greene on 6/3/22.
// Created by Isaac Greene on 2022-06-03.
//
import SwiftUI

View file

@ -2,7 +2,7 @@
// LicenseView.swift
// Splits
//
// Created by Isaac Greene on 6/9/22.
// Created by Isaac Greene on 2022-06-08.
//
import SwiftUI
@ -22,86 +22,295 @@ struct LicenseView: View {
ScrollView {
VStack (alignment: .leading) {
Text("""
--------------------------------------------------------------------
| THIS WORK, AND ALL SUBSEQUENT RELEASES, VERSIONS, MODIFICATIONS, |
| AND UPDATES ARE COPYRIGHT © ISAAC GREENE, AND MAY BE RELEASED |
| UNDER THIS LICENSE. |
| |
| COPIES OF THIS SOURCE CODE MAY BE MADE AVAILABLE BY WRITTEN |
| REQUEST TO ISAAC GREENE. ISAAC GREENE IS GIVEN FULL DISCRETION |
| TO APPROVE OR DENY THESE REQUESTS. |
| CHANGES MAY BE MADE TO THIS LICENSE AT ANY TIME WITHOUT |
| NOTICE OR WARNING. |
| |
| BY ANY USE OF THIS SOFTWARE AND/OR LICENSE YOU AGREE THAT: |
| 1. YOU ARE SUBJECT TO THE TERMS PUT FORTH IN THIS LICENSE. |
| 2. YOU HAVE NO GUARANTEED RIGHTS REGARDING THE USE OF THIS |
| APPLICATION OR LICENSE. |
| 3. YOUR ACCESS TO THIS SOFTWARE MAY BE REVOKED AT ANY TIME |
| 3A. IF YOUR ACCESS IS REVOKED, YOU MAY CONTINUE TO USE |
| AND KEEP YOUR CURRENT COPY OF THIS SOFTWARE AND THIS |
| LICENSE MAY BE REPLACED WITH AN UPDATED VERSION FOR YOU |
| TO USE |
| |
| Under the terms of this license, you agree that you may: |
| - view source code and files contained in this package |
| upon request |
| - make copies of this code, in whole or in part, for |
| personal use |
| - share copies of this license and/or code, provided this |
| work is never publicly available |
| - test this code on your personal systems |
| |
| Under the terms of this license, you agree that may not: |
| - use this code for commercial purposes |
| - modify this code or license |
| |
| ANY RIGHTS NOT EXPLICITLY GRANTED TO YOU IN THIS LICENSE ARE |
| AUTOMATICALLY UNDER CONTROL OF ISAAC GREENE. |
| ALL PROVISIONS IN THIS LICENSE MAY BE MODIFIED ON A PER-CASE |
| BASIS ON REQUEST, SUBJECT TO APPROVAL. |
| Permission to distribute, modify, publish, monetize, or otherwise|
| go against the preset terms of this license may be granted, in |
| writing and by request, by Isaac Greene. |
| |
| ANY AND ALL REDISTRIBUTIONS OF THIS WORK(S) MUST INLCLUDE A COPY |
| OF THIS LICENSE IN THE ABOVE FORM AND THE FOLLOWING DISCLAIMER |
| IN THE DOCUMENTATION AND/OR OTHER MATERIALS PROVIDED. |
| |
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND |
| CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES |
| INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR |
| CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
| USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
| AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
| IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
| THE POSSIBILITY OF SUCH DAMAGE. |
--------------------------------------------------------------------
Copyright © 2022, Isaac Greene
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by Isaac Greene.
Neither the name of Isaac Greene nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY ISAAC GREENE AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ISAAC GREENE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This application makes use of certain third-party open-source software.\nLegal notices:
----------
Rob Phillips ( Down )
The MIT License (MIT)
Copyright (c) 2016 Rob Phillips.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----
cmark
Copyright (c) 2014, John MacFarlane
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-----
houdini.h, houdini_href_e.c, houdini_html_e.c, houdini_html_u.c,
html_unescape.gperf, html_unescape.h
derive from https://github.com/vmg/houdini (with some modifications)
Copyright (C) 2012 Vicent Martí
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-----
buffer.h, buffer.c, chunk.h
are derived from code (C) 2012 Github, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-----
utf8.c and utf8.c
are derived from utf8proc
(<http://www.public-software-group.org/utf8proc>),
(C) 2009 Public Software Group e. V., Berlin, Germany.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
-----
The normalization code in runtests.py was derived from the
markdowntest project, Copyright 2013 Karl Dubost:
The MIT License (MIT)
Copyright (c) 2013 Karl Dubost
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----
The CommonMark spec (test/spec.txt) is
Copyright (C) 2014-15 John MacFarlane
Released under the Creative Commons CC-BY-SA 4.0 license:
<http://creativecommons.org/licenses/by-sa/4.0/>.
-----
The test software in test/ is
Copyright (c) 2014, John MacFarlane
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-----
The normalization code in runtests.py was derived from the
markdowntest project, Copyright 2013 Karl Dubost:
The MIT License (MIT)
Copyright (c) 2013 Karl Dubost
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----
MathChat ( iosMath )
The MIT License (MIT)
Copyright (c) 2013 MathChat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----
TopHat ( RichTextView )
Copyright 2022 TopHat
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
-----
SnapKit Team ( SnapKit )
Copyright (c) 2011-Present SnapKit Team - https://github.com/SnapKit
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----
Daniele Margutti ( SwiftRichString )
The MIT License (MIT)
Copyright (c) 2018 Daniele Margutti
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
----------
Created: 2022-06-08
Updated: 2022-07-19
""")
// this part's kind of self explanatory.
// this is the Software License for all of the
// code in this application.
.font(.custom("Menlo", size: fontSize))
.textSelection(.enabled)
.multilineTextAlignment(.leading)
// these modifiers simply change the default font
// font size, and allows you to select this text
Text("\nCreated: 2022-06-08")
Text("Updated: 2022-06-09")
}
.navigationTitle("Software License Agreement")
.navigationTitle("Licenses")
.navigationBarTitleDisplayMode(.inline)
// sets the top of the screen to this text which always
// lets you know what page you're in
.padding()
.frame(maxWidth: .infinity)
// this just makes it so you can scroll anywhere on screen
// instead of only in the frame
}
}
}

View file

@ -2,7 +2,7 @@
// SecretView.swift
// Splits
//
// Created by Isaac Greene on 6/9/22
// Created by Isaac Greene on 2022-06-09.
//
import SwiftUI

View file

@ -2,15 +2,10 @@
// SplitsApp.swift
// Splits
//
// Created by Isaac Greene on 4/3/22.
// Created by Isaac Greene on 2022-04-03.
//
import SwiftUI
// this file will not have comments.
// this code is considered simple enough to be
// human-readable without aid, as long as
// the reader has a basic understanding of
// Swift and/or SwiftUI.
@main
/// Builds the main view of the app (``TabViewData``)

View file

@ -2,7 +2,7 @@
// TabViewData.swift
// Splits
//
// Created by Isaac Greene on 4/9/22.
// Created by Isaac Greene on 2022-04-09.
//
import SwiftUI