From 5ae2da2651dbcb55e7dfd26f3b48b6b70dd039f1 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Wed, 24 Nov 2021 10:25:13 -0800 Subject: [PATCH] Delete codeine folder from project --- Meshtastic Client.xcodeproj/project.pbxproj | 8 ++------ .../Data/Mesh.xcdatamodeld/Mesh.xcdatamodel/contents | 2 +- MeshtasticClient/Views/Messages/Messages.swift | 5 +++-- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Meshtastic Client.xcodeproj/project.pbxproj b/Meshtastic Client.xcodeproj/project.pbxproj index 7521811e..c15000f1 100644 --- a/Meshtastic Client.xcodeproj/project.pbxproj +++ b/Meshtastic Client.xcodeproj/project.pbxproj @@ -48,7 +48,6 @@ DDC2E17A26CE248F0042C5E4 /* MeshtasticClientUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC2E17926CE248F0042C5E4 /* MeshtasticClientUITests.swift */; }; DDC2E18F26CE25FE0042C5E4 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC2E18E26CE25FE0042C5E4 /* ContentView.swift */; }; DDC2E1A726CEB3400042C5E4 /* LocationHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC2E1A626CEB3400042C5E4 /* LocationHelper.swift */; }; - DDD2B1562749422E00E42118 /* CodeGen in Resources */ = {isa = PBXBuildFile; fileRef = DDD2B1552749422E00E42118 /* CodeGen */; }; DDD8976E2745E08F000258DB /* Mesh.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = DDD8976C2745E08F000258DB /* Mesh.xcdatamodeld */; }; DDF924C626FA2375009FE055 /* MessageModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDF924C526FA2375009FE055 /* MessageModel.swift */; }; DDF924CA26FBB953009FE055 /* ConnectedDevice.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDF924C926FBB953009FE055 /* ConnectedDevice.swift */; }; @@ -119,7 +118,6 @@ DDC2E17B26CE248F0042C5E4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; DDC2E18E26CE25FE0042C5E4 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; DDC2E1A626CEB3400042C5E4 /* LocationHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocationHelper.swift; sourceTree = ""; }; - DDD2B1552749422E00E42118 /* CodeGen */ = {isa = PBXFileReference; lastKnownFileType = folder; path = CodeGen; sourceTree = ""; }; DDD8976D2745E08F000258DB /* Mesh.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = Mesh.xcdatamodel; sourceTree = ""; }; DDF924C526FA2375009FE055 /* MessageModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageModel.swift; sourceTree = ""; }; DDF924C926FBB953009FE055 /* ConnectedDevice.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConnectedDevice.swift; sourceTree = ""; }; @@ -207,7 +205,6 @@ DDB0209E272B0C5700F8DBAE /* Data */ = { isa = PBXGroup; children = ( - DDD2B1552749422E00E42118 /* CodeGen */, DDD8976C2745E08F000258DB /* Mesh.xcdatamodeld */, ); path = Data; @@ -454,7 +451,6 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - DDD2B1562749422E00E42118 /* CodeGen in Resources */, DDC2E15F26CE248F0042C5E4 /* Preview Assets.xcassets in Resources */, DDC2E15C26CE248F0042C5E4 /* Assets.xcassets in Resources */, ); @@ -696,7 +692,7 @@ SUPPORTS_MACCATALYST = YES; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2,6"; + TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; @@ -723,7 +719,7 @@ SUPPORTS_MACCATALYST = YES; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2,6"; + TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; }; diff --git a/MeshtasticClient/Model/Data/Mesh.xcdatamodeld/Mesh.xcdatamodel/contents b/MeshtasticClient/Model/Data/Mesh.xcdatamodeld/Mesh.xcdatamodel/contents index 9709e41c..f5065496 100644 --- a/MeshtasticClient/Model/Data/Mesh.xcdatamodeld/Mesh.xcdatamodel/contents +++ b/MeshtasticClient/Model/Data/Mesh.xcdatamodeld/Mesh.xcdatamodel/contents @@ -14,7 +14,7 @@ - + diff --git a/MeshtasticClient/Views/Messages/Messages.swift b/MeshtasticClient/Views/Messages/Messages.swift index 4e6e8703..6edf108c 100644 --- a/MeshtasticClient/Views/Messages/Messages.swift +++ b/MeshtasticClient/Views/Messages/Messages.swift @@ -12,6 +12,7 @@ struct Messages: View { // Keyboard State @State var typingMessage: String = "" @State private var totalBytes = 0 + private var maxbytes = 228 @State private var lastTypingMessage = "" @FocusState private var focusedField: Field? @@ -126,7 +127,7 @@ struct Messages: View { let size = value.utf8.count totalBytes = size - if totalBytes <= 200 { + if totalBytes <= maxbytes { // Allow the user to type lastTypingMessage = typingMessage } @@ -147,7 +148,7 @@ struct Messages: View { Spacer() - ProgressView("Bytes: \(totalBytes) / 200", value: Double(totalBytes), total: 200) + ProgressView("Bytes: \(totalBytes) / \(maxbytes)", value: Double(totalBytes), total: Double(maxbytes)) .frame(width: 130) .padding(5) .font(.subheadline)