From 47f07fde6218ddf0e56fa00764bc1d0aa85b1f22 Mon Sep 17 00:00:00 2001 From: Lucas Date: Wed, 4 Sep 2024 17:46:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20change=20scroll=20speed=20to=20m?= =?UTF-8?q?ake=20more=20sense?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 133 +++++++++++++++++++++++++++++++ Tabula.xcodeproj/project.pbxproj | 8 +- Tabula/ContentView.swift | 6 +- 3 files changed, 140 insertions(+), 7 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a8ad901 --- /dev/null +++ b/.gitignore @@ -0,0 +1,133 @@ +# Created by https://www.toptal.com/developers/gitignore/api/swift,xcode,Cobjective-c,osx +# Edit at https://www.toptal.com/developers/gitignore?templates=swift,xcode,Cobjective-c,osx + +#!! ERROR: cobjective-c is undefined. Use list command to see defined gitignore types !!# + +### OSX ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### Swift ### +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## User settings +xcuserdata/ + +## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) +*.xcscmblueprint +*.xccheckout + +## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) +build/ +DerivedData/ +*.moved-aside +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 + +## Obj-C/Swift specific +*.hmap + +## App packaging +*.ipa +*.dSYM.zip +*.dSYM + +## Playgrounds +timeline.xctimeline +playground.xcworkspace + +# Swift Package Manager +# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. +# Packages/ +# Package.pins +# Package.resolved +# *.xcodeproj +# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata +# hence it is not needed unless you have added a package configuration file to your project +# .swiftpm + +.build/ + +# CocoaPods +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control +# Pods/ +# Add this line if you want to avoid checking in source code from the Xcode workspace +# *.xcworkspace + +# Carthage +# Add this line if you want to avoid checking in source code from Carthage dependencies. +# Carthage/Checkouts + +Carthage/Build/ + +# Accio dependency management +Dependencies/ +.accio/ + +# fastlane +# It is recommended to not store the screenshots in the git repo. +# Instead, use fastlane to re-generate the screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/#source-control + +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots/**/*.png +fastlane/test_output + +# Code Injection +# After new code Injection tools there's a generated folder /iOSInjectionProject +# https://github.com/johnno1962/injectionforxcode + +iOSInjectionProject/ + +### Xcode ### + +## Xcode 8 and earlier + +### Xcode Patch ### +*.xcodeproj/* +!*.xcodeproj/project.pbxproj +!*.xcodeproj/xcshareddata/ +!*.xcodeproj/project.xcworkspace/ +!*.xcworkspace/contents.xcworkspacedata +/*.gcno +**/xcshareddata/WorkspaceSettings.xcsettings + +# End of https://www.toptal.com/developers/gitignore/api/swift,xcode,Cobjective-c,osx + diff --git a/Tabula.xcodeproj/project.pbxproj b/Tabula.xcodeproj/project.pbxproj index c835f7c..0fac3e7 100644 --- a/Tabula.xcodeproj/project.pbxproj +++ b/Tabula.xcodeproj/project.pbxproj @@ -412,7 +412,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1.2.0; + CURRENT_PROJECT_VERSION = 1.3.0; DEVELOPMENT_ASSET_PATHS = "\"Tabula/Preview Content\""; DEVELOPMENT_TEAM = 3S6Q428WC7; ENABLE_HARDENED_RUNTIME = YES; @@ -425,7 +425,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 14.0; - MARKETING_VERSION = 1.2.0; + MARKETING_VERSION = 1.3.0; PRODUCT_BUNDLE_IDENTIFIER = de.keyruu.Tabula; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; @@ -442,7 +442,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1.2.0; + CURRENT_PROJECT_VERSION = 1.3.0; DEVELOPMENT_ASSET_PATHS = "\"Tabula/Preview Content\""; DEVELOPMENT_TEAM = 3S6Q428WC7; ENABLE_HARDENED_RUNTIME = YES; @@ -455,7 +455,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 14.0; - MARKETING_VERSION = 1.2.0; + MARKETING_VERSION = 1.3.0; PRODUCT_BUNDLE_IDENTIFIER = de.keyruu.Tabula; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; diff --git a/Tabula/ContentView.swift b/Tabula/ContentView.swift index cb94801..e9d646c 100644 --- a/Tabula/ContentView.swift +++ b/Tabula/ContentView.swift @@ -42,12 +42,12 @@ struct ContentView: View { Toggle("Y", isOn: $yEnabled) } VStack { - Slider(value: $scrollSpeed, in: 5...200, step: 5) { + Slider(value: $scrollSpeed, in: 1...100) { Text("Scroll Speed:") } minimumValueLabel: { - Text("5") + Text("1") } maximumValueLabel: { - Text("200") + Text("100") } } Text("\(scrollSpeed, specifier: "%.0f")")