mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Delete codeine folder from project
This commit is contained in:
parent
69efa420c8
commit
5ae2da2651
3 changed files with 6 additions and 9 deletions
|
|
@ -14,7 +14,7 @@
|
|||
<attribute name="num" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
|
||||
<attribute name="snr" optional="YES" attributeType="Float" defaultValueString="0.0" usesScalarValueType="YES"/>
|
||||
<relationship name="position" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="PositionEntity"/>
|
||||
<relationship name="user" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="UserEntity"/>
|
||||
<relationship name="user" maxCount="1" deletionRule="Nullify" destinationEntity="UserEntity"/>
|
||||
</entity>
|
||||
<entity name="PositionEntity" representedClassName="PositionEntity" syncable="YES" codeGenerationType="class">
|
||||
<attribute name="altitude" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue