Commit 4bf1fca6 authored by Yi Wang's avatar Yi Wang

chore: tune layout, bump ios build to 24

parent 69ffff5c
......@@ -13,20 +13,18 @@ struct ContentView: View {
@EnvironmentObject var env : Env
@State private var showingSync = false
var body: some View {
NavigationView {
VStack {
HStack{
Text(" Own your bookmarks on your device.")
Spacer()
Text(" LN")
SearchBar(text: $searchText, placeholder: "type to search")
Button(action:{
self.showingSync.toggle()
}){
Text("Sync ")
}.sheet(isPresented: $showingSync){
SyncView()
SyncView()
}
}
SearchBar(text: $searchText, placeholder: "type to search")
HStack{
Button(action:{
let offset = AppState.decOffset()
......@@ -47,9 +45,10 @@ struct ContentView: View {
List (env.notes){
note in
NoteRowView(note: note, query: self.$searchText)
}.navigationBarTitle(Text("Local Native"))
}
Text("Own your bookmarks on your device.")
}
}
}
}
......
......@@ -23,7 +23,7 @@ struct NoteRowView: View {
Text("X")
}.alert(isPresented: $showingAlert) {
Alert(
title: Text("Do you really want to delete this item \(note.id)?"),
title: Text("Do you really want to delete this item \(String(note.uuid4.prefix(5))).. \(String(note.id))?"),
message: Text("There is no undo"),
primaryButton: .destructive(Text("Delete")){
AppState.ln.run(json_input:"""
......
......@@ -26,7 +26,7 @@ struct QRCodeView: View {
Image(uiImage: image).interpolation(.none)
.resizable()
.aspectRatio(contentMode: .fit)
//Spacer()
Spacer()
}.padding()
}
func makeText(note: Note) -> String{
......
......@@ -772,7 +772,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = "localnative-ios.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 23;
CURRENT_PROJECT_VERSION = 24;
DEVELOPMENT_TEAM = 38Y7PH227Q;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "ln-ios/Info.plist";
......@@ -804,7 +804,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = "localnative-ios.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 23;
CURRENT_PROJECT_VERSION = 24;
DEVELOPMENT_TEAM = 38Y7PH227Q;
ENABLE_BITCODE = NO;
GCC_OPTIMIZATION_LEVEL = 0;
......@@ -921,7 +921,7 @@
buildSettings = {
CODE_SIGN_ENTITLEMENTS = "share-ext/share-ext.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 23;
CURRENT_PROJECT_VERSION = 24;
DEVELOPMENT_TEAM = 38Y7PH227Q;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "share-ext/Info.plist";
......@@ -948,7 +948,7 @@
buildSettings = {
CODE_SIGN_ENTITLEMENTS = "share-ext/share-ext.entitlements";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 23;
CURRENT_PROJECT_VERSION = 24;
DEVELOPMENT_TEAM = 38Y7PH227Q;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "share-ext/Info.plist";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment