予報士アプリ update

2021 令和3年10月20日

swift5への変換は不可。run ok!!

当面やることとして、ノーマル版のDB更新、answerの一部(ー)表示に改修。

masterテーブルのセル表示boldからレギュラー文字へ。
masterテーブルのセル表示からnoを削除(20→0)併せて、masterテーブル修正

・フェッチリクエストに999除外設定。
fetchedResultsController
charnum != 999 AND にてok!!

Launch Screen storyboardに変更!!設定 general

・詳細画面の(ーー)化
詳細 detail 詳細テーブル版
purchasedEnabledにて切り替えるも、うまく働かず、
master tableからの渡し(以前作成のもの setIsSearchTable)を使い回して、でok!!

残るは、db更新とチェック。

2021 令和3年10月22日

サーチバー関係
filterContentForSearchText エラー発生!!究明中
charnum != 999 AND追加で完動!!

DB CSV更新

appstore アップデートについて 注意!!
キイチェーン アクセス パスワード設定!!
常に許可にすること・・・でないと受け付けない。

バグ有り
詳細画面の課金による文字制限を18に設定。
最低15文字なので、落ちる。修正。
そのほか、説明の文言など修正。

バックアップをとること。

バグ発見:
csvに、”,”あり、999が0となり、即落ちる。
改修 2021 11 6


ここからplus版


2021 令和3年10月23日
予報士plus・・・メニューを閉じると落ちる。
原因不明。当面 全体のしくみを把握すること。
おでかけも同様のメニューを使用しているので、動作確認要。ただし、googlemapsのipodインストールが必要。

以下 検索すると多数、現状か作り替えるか要検討!!
本命か↓となると、Hacking with Swiftで再学習。
Building a menu using List(Hacking with Swift>)
Side Menu (Hamburger Menu) ダウンロード有り 動作確認済み

Hacking with Swift UIMenu

おでかけ系での動作確認要。

2021 令和3年11月8日

以下swift5 ok これをもとに作業開始(2021 11 09)エクスパンダブル ExpandableListSwiftUI
my sight SwiftUIに有り。
Expand and Collapse List Rows with Animation in SwiftUI
日本語訳
SwiftUIのアニメーションでリスト行を展開および折りたたむ

サイドメニュー 候補 swiftui版 上書きview
サイドメニュー MY-PROJECT考察(2020.09.27〜)にあり。
SwiftUI サイドメニューの実装(目の保養付き)

サイドメニュー 候補 swiftui版 story board版
スライドメニュー(swift5版)
↑に関連して、以下により修正。
Status bar height in Swift

‘animation’ was deprecated in iOS 15.0: Use withAnimation or animation(_:value:) instead.
以下修正
.animation(.linear(duration: 0.3), value: selection)
関連サイト
SwiftUI 3 Animation in iOS 15

SwiftUI では、Swift5.1で導入された新機能
SwiftUI のための Swift5

6 Ways to Show and Hide Views in SwiftUI

coredata関連

2021 令和3年11月11日

plus版coredata部分をswiftuiに搭載中。
まずは、AppDelegate関連は以下サイトを参考に。
SwiftUI app life cycle iOS14 where to put AppDelegate code?

coredata swiftui 参考サイト
How to configure Core Data to work with SwiftUI
【SwiftUI】Core Dataの使い方:標準テンプレートを読み解く
Core Data + SwiftUIをMVVMで組む

swiftui coredata格納 表示 検索まで完了
次は、とりあえずエクスパンダブル表示か (表示完了)

2021 令和3年11月12日

title表示 paddingなど見た目改修。背景設定 初期ではスケスケ表示
coredata preview版完了!!

2021 令和3年11月13日

FetchRequest predicate関係
100 Days of SwiftUI(DAY 58(Project12 part 2))
コード:フォルダ(Back to 100 Days of SwiftUI)
プロジェクト:CoreDataProject_singer — CoreDataProject2_singer
更に:
あらゆる種類のエンティティで機能し、あらゆるフィールドでフィルタリングできるようにすることができます。

CoreDataProject_singer対応完了
CoreDataProject2_singerは、これから(あらゆる種類のエンティティ)

 

2021 令和3年11月14日

  • todo:
  • あらゆる種類のエンティティ query key 追加 あらゆる種類バージョンは、view階層が直下でないため、断念。
  • スライドメニュー(めくる、上書き)2種

2021 令和3年11月15日

bindingとparameterの共存、初期化など
SwiftUI: How to implement a custom init with @Binding variables

ほぼ二日間 試行錯誤!!!
要するに、sqlのdistinct
coredataのsectionNameKeyPathをどうすれば使えるのか!!

最終的に以下サイトでokとなる。
神サイト
List, NSFetchedResultsController, Sections

2021 令和3年11月16日(火)

本日プログラミング休憩
今後:
シートビュー:をマルチカラム化検討 情報取得
swiftui coredata復習(セクション表示再確認)←全く同一の機能有する。発見!!

学習
こんごとして、LazyVGrid関係(マルチカラムやそのほかリンク
How to position views in a grid using LazyVGrid and LazyHGrid
SwiftUI by Example
100 Days of SwiftUI
What’s new in Xcode 13?

2021 令和3年11月17日(水)

Core data EntityをIdentifiableに適用させる
Userエンティティの配列をSwiftUIのForEachで回す。
Core Data + SwiftUIをMVVMで組む

extension User: Identifiable {}

2021 令和3年11月18日(木)
高知にて、wifi利用 エトセトラダウンロード xcode含む

2021 令和3年11月19日(金)
‘brown’ is only available in iOS 15.0 or newer
Xcodeにて、ios15が使えない案件は、以下サイト
Xcode doesn’t support iOS 15.0
セットアップにについては、以下リンク
How to add device support files to Xcode

2021 令和3年11月23日(火)

Xcodeにて、ios15が使えない案件
‘brown’ is only available in iOS 15.0 or newer
↑は勘違い!!
理由は、以下サイト。
解決!! こんなところに設定があるとは見逃していた。
“*** is only available in iOS 15.0 or newer”

2021 令和3年10月20日

swift5への変換は不可。run ok!!

当面やることとして、ノーマル版のDB更新、answerの一部(ー)表示に改修。

masterテーブルのセル表示boldからレギュラー文字へ。
masterテーブルのセル表示からnoを削除(20→0)併せて、masterテーブル修正

・フェッチリクエストに999除外設定。
fetchedResultsController
charnum != 999 AND にてok!!

Launch Screen storyboardに変更!!設定 general

・詳細画面の(ーー)化
詳細 detail 詳細テーブル版
purchasedEnabledにて切り替えるも、うまく働かず、
master tableからの渡し(以前作成のもの setIsSearchTable)を使い回して、でok!!

残るは、db更新とチェック。

2021 令和3年10月22日

サーチバー関係
filterContentForSearchText エラー発生!!究明中
charnum != 999 AND追加で完動!!

DB CSV更新

appstore アップデートについて 注意!!
キイチェーン アクセス パスワード設定!!
常に許可にすること・・・でないと受け付けない。

バグ有り
詳細画面の課金による文字制限を18に設定。
最低15文字なので、落ちる。修正。
そのほか、説明の文言など修正。

バックアップをとること。

バグ発見:
csvに、”,”あり、999が0となり、即落ちる。
改修 2021 11 6


ここからplus版


2021 令和3年10月23日
予報士plus・・・メニューを閉じると落ちる。
原因不明。当面 全体のしくみを把握すること。
おでかけも同様のメニューを使用しているので、動作確認要。ただし、googlemapsのipodインストールが必要。

以下 検索すると多数、現状か作り替えるか要検討!!
本命か↓となると、Hacking with Swiftで再学習。
Building a menu using List(Hacking with Swift>)
Side Menu (Hamburger Menu) ダウンロード有り 動作確認済み

Hacking with Swift UIMenu

おでかけ系での動作確認要。

2021 令和3年11月8日

以下swift5 ok これをもとに作業開始(2021 11 09)エクスパンダブル ExpandableListSwiftUI
my sight SwiftUIに有り。
Expand and Collapse List Rows with Animation in SwiftUI
日本語訳
SwiftUIのアニメーションでリスト行を展開および折りたたむ

サイドメニュー 候補 swiftui版 上書きview
サイドメニュー MY-PROJECT考察(2020.09.27〜)にあり。
SwiftUI サイドメニューの実装(目の保養付き)

サイドメニュー 候補 swiftui版 story board版
スライドメニュー(swift5版)
↑に関連して、以下により修正。
Status bar height in Swift

‘animation’ was deprecated in iOS 15.0: Use withAnimation or animation(_:value:) instead.
以下修正
.animation(.linear(duration: 0.3), value: selection)
関連サイト
SwiftUI 3 Animation in iOS 15

SwiftUI では、Swift5.1で導入された新機能
SwiftUI のための Swift5

6 Ways to Show and Hide Views in SwiftUI

coredata関連

2021 令和3年11月11日

plus版coredata部分をswiftuiに搭載中。
まずは、AppDelegate関連は以下サイトを参考に。
SwiftUI app life cycle iOS14 where to put AppDelegate code?

coredata swiftui 参考サイト
How to configure Core Data to work with SwiftUI
【SwiftUI】Core Dataの使い方:標準テンプレートを読み解く
Core Data + SwiftUIをMVVMで組む

swiftui coredata格納 表示 検索まで完了
次は、とりあえずエクスパンダブル表示か (表示完了)

2021 令和3年11月12日

title表示 paddingなど見た目改修。背景設定 初期ではスケスケ表示
coredata preview版完了!!

2021 令和3年11月13日

FetchRequest predicate関係
100 Days of SwiftUI(DAY 58(Project12 part 2))
コード:フォルダ(Back to 100 Days of SwiftUI)
プロジェクト:CoreDataProject_singer — CoreDataProject2_singer
更に:
あらゆる種類のエンティティで機能し、あらゆるフィールドでフィルタリングできるようにすることができます。

CoreDataProject_singer対応完了
CoreDataProject2_singerは、これから(あらゆる種類のエンティティ)

 

2021 令和3年11月14日

  • todo:
  • あらゆる種類のエンティティ query key 追加 あらゆる種類バージョンは、view階層が直下でないため、断念。
  • スライドメニュー(めくる、上書き)2種

2021 令和3年11月15日

bindingとparameterの共存、初期化など
SwiftUI: How to implement a custom init with @Binding variables

ほぼ二日間 試行錯誤!!!
要するに、sqlのdistinct
coredataのsectionNameKeyPathをどうすれば使えるのか!!

最終的に以下サイトでokとなる。
神サイト
List, NSFetchedResultsController, Sections

2021 令和3年11月16日(火)

本日プログラミング休憩
今後:
シートビュー:をマルチカラム化検討 情報取得
swiftui coredata復習(セクション表示再確認)←全く同一の機能有する。発見!!

学習
こんごとして、LazyVGrid関係(マルチカラムやそのほかリンク
How to position views in a grid using LazyVGrid and LazyHGrid
SwiftUI by Example
100 Days of SwiftUI
What’s new in Xcode 13?

2021 令和3年11月17日(水)

Core data EntityをIdentifiableに適用させる
Userエンティティの配列をSwiftUIのForEachで回す。
Core Data + SwiftUIをMVVMで組む

extension User: Identifiable {}

2021 令和3年11月18日(木)
高知にて、wifi利用 エトセトラダウンロード xcode含む

2021 令和3年11月19日(金)
‘brown’ is only available in iOS 15.0 or newer
Xcodeにて、ios15が使えない案件は、以下サイト
Xcode doesn’t support iOS 15.0
セットアップにについては、以下リンク
How to add device support files to Xcode

2021 令和3年11月23日(火)

Xcodeにて、ios15が使えない案件
‘brown’ is only available in iOS 15.0 or newer
↑は勘違い!!
理由は、以下サイト。
解決!! こんなところに設定があるとは見逃していた。
“*** is only available in iOS 15.0 or newer”

以下 参考事項 試してみたサイト
Xcode 13 on iOS 15 Beta ‘Untrusted Developer’ error on iPhone XS device


struct SheetView3: View {
var body: some View {
ZStack {
VStack(spacing: 0) {
Color.red
Color.blue
}

Text(“Your content”)
.foregroundColor(.secondary)
.padding(50)
.background(.ultraThinMaterial)
}
.ignoresSafeArea()
}

}

グラデーション リンク(20日目 プロジェクト2、パート1)

2021 令和3年11月24日(水)

一部サイト版修正版

ForEach(section.objects as? [Item] ?? []){item in
Text(item.wrappedTitle)
}

2021 令和3年11月25日(木)

シートビュー(カテゴリーなど選択画面表示)用のCORE MODELがCONTENT VIEW以外では、
動作しないとの結論に達し、CONTENT VIEWで初期化し、結果をシートビューに渡すことで
解決!!
マルチグリッド表示、更にタップして再表示まで完了。

2021 令和3年11月26日(金)

アプリ紹介を残し、プロトタイプほぼ完了
本日の参考サイトリンク

【SwiftUI】Font のデザインを変える方法【等幅フォント・明朝体・カスタム…etc】
SwiftUIのTextのfontとfontWeight一覧
NSPredicate with multiple arguments and “AND behaviour”

2021 令和3年11月27日(土)

アプリ紹介ページの組み込み(UIViewController)
最もシンプルと思われるリンク!!
[Tips]SwiftUI側でViewControllerを表示

SWIFTUI SKSTOREPRODUCTVIEWCONTROLLER MUST BE USED IN A MODAL VIEW

How to present a full screen modal view using fullScreenCover()

今後:
シンプルバージョンにて、リプレゼンタブル試行。
更に、storyboardを組み込み、試行

今のところ apple store関係 解決策見つからず
当面 safariで行くこととする。

Load Safari Inside App

2021 令和3年11月30日(火)

normal plus版ともにほぼ完成。アップロード テストもおk

本日の神サイト
[Swift] SwiftUIの不思議な機能を実現する変数展開”\()”について調べた
更に参考サイト
SwiftUIでText中の文字の太さや色を変える

normal plus版 アップロード 審査待ち!!

plus版 審査通過!!

normal版は、以下により却下

Guideline 2.1 – Performance – App Completeness

We found that your in-app purchase products exhibited one or more bugs when reviewed on iPad and iPhone running iOS 15.1 on Wi-Fi.

We were unable to purchase via in App purchase or restore in your app. There was nothing come up on screen when we tapped 追加機能の購入.

Next Steps

When validating receipts on your server, your server needs to be able to handle a production-signed app getting its receipts from Apple’s test environment. The recommended approach is for your production server to always validate receipts against the production App Store first. If validation fails with the error code “Sandbox receipt used in production,” you should validate against the test environment instead.

Hi.
This app is only for iPhone.
I don’t have iPad.
My iPhone is running on ios15.1
it’s not WIFI. I connect mobile.
On sandbox I tested to tapped 購入復元.
it is OK!
screen shot is here.

原因は、価格テキストへの代入不可!! アプリが落ちる箇所が原因
修正!!
そのほか、SANDBOX関連、テスター登録後、購入テスト等々おk。
iPhoneのログアウトは、app store 検索 の 右上をクリックした場所にあり。

課金実装関連サイト
初めてのiOSアプリ内課金実装
Xcode Apple審査のリジェクト(課金のレシート検証?)修正について

objective alert アラート関連(今回審査では、通過 非推奨)
「’UIAlertView’ is deprecated」の対処方法

再度、却下。理由を付して、送信。当面待ちの状態。

2021 令和3年12月1日(木)

本日の神サイト:ソース有り。How To Use In-App Purchases In SwiftUI Apps
How To Use In-App Purchases In SwiftUI Apps

Hello,

Thank you for providing these information.

Regarding 2.1 issue, it is still valid. We were unable to purchase via in App purchase or restore in your app. There was nothing come up on screen when we tapped 追加機能の購入.

Additionally, the error message displayed when we tapped 購入復元.

— Please clarify if your app works on VPN and whether the bug issue is caused by VPN.

We look forward to hearing from you.

Best regards,

App Store Review

Hello,

By the way.
購入復元(japanese) is ‘Purchase restoration’ that I think.
First need to buy.
It’s mean that first press button ‘追加機能の購入’
Then second press button ‘購入復元’
I hope it works.

regards


2021 令和3年12月6日(月曜日)

2021年12月3日 19:35

Hello ,

Thank you for providing these information.

Regarding 2.1 issue, it is still valid.

追加機能の購入 button was unresponsive when we tapped. Additionally, the error message displayed when we tapped 購入復元.

We arranged call with an Apple Representative regarding this issue.

An Apple Representative will call you on the number you provided in the App Review Information section of App Store Connect within the next 3 to 5 business days to discuss your app. Please ensure you have provided the correct contact information for this outreach.

Please note that our representatives are experiencing an unusually high volume of call requests and we will do our best to contact you as soon as possible. We look forward to helping you address the issues we found in our review and apologize in advance for any delay in speaking with us.

Best regards,

2021 令和3年12月7日(火曜日)
How To Use In-App Purchases In SwiftUI Apps SwiftUI
アプリでアプリ内購入を使用する方法

ダウンロードロードし、学習とRUN 「自身の環境に変更(バンドルIDと購入ID)」し、動作OK!!
ビューの遷移について、調査要。(ナビゲーション toolbarを使用してok)
購入についてはok。

KEY WORD
how to dip indicator in swiftui

UserDefaultsの使い方

2021 令和3年12月8日(水曜日)

In_AppPurchase組み込み、動作ok.
weather forecasterに組み込み、ContentViewではなく、In_AppPurchase(view)となるため、
appの部分が、contentに移動して、動作ok.
立ち上げは、toolvarのbuttonとする。

UserDefaultsによる、制限も動作ok!!

2021 令和3年12月9日(木曜日)

masterview detailsviewの表示項目追加
detailsviewの制限view追加
icon追加
navigationの戻り表示を不可に設定など。
基本的には、これでoかk!!

ナビゲーションの戻るボタンの表示変更
Remove back button text from navigationbar in SwiftUI

UPLOADして審査待ち(2021 12 09 14:08)

★★★★ 審査OK!! READY FOR SALE MAIL 19:42

2021 令和3年12月10日(金曜日)

CSV 120文字の部分訂正および不用スクリーンショット削除。
1.71
2.01
として、再UPLOAD予定。