Ver código fonte

Docs: enhance firebase in app messaging comments (#13790)

Seyed Mojtaba Hosseini Zeidabadi 1 ano atrás
pai
commit
90eb6d56d6

+ 1 - 1
FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutUploader.m

@@ -177,7 +177,7 @@ static NSString *FIRIAM_UserDefaultsKeyForNextValidClearcutUploadTimeInMills =
                                * Note that there is a chance that the app crashes before we can
                                * call pushRecords: on the logStorage below which means we lost
                                * these log records permanently. This is a trade-off between handling
-                               * duplicate records on server side vs taking the risk of lossing
+                               * duplicate records on server side vs taking the risk of losing
                                * data. This implementation picks the latter.
                                */
                               FIRLogDebug(kFIRLoggerInAppMessaging, @"I-IAM260007",

+ 1 - 1
FirebaseInAppMessaging/Sources/DefaultUI/ImageOnly/FIRIAMImageOnlyViewController.m

@@ -117,7 +117,7 @@
 
   // Calculate the size of the image view under the constraints:
   // 1 Retain the image ratio
-  // 2 Have at least 30 point of margines around four sides of the image view
+  // 2 Have at least 30 point of margins around four sides of the image view
 
   CGFloat minimalMargine = 30;  // 30 points
   CGFloat maxImageViewWidth = self.view.window.frame.size.width - minimalMargine * 2;

+ 2 - 2
FirebaseInAppMessaging/Sources/DefaultUI/Modal/FIRIAMModalViewController.m

@@ -296,7 +296,7 @@ struct TitleBodyButtonHeightInfo {
                "with frame height as %lf",
               heightCalcReference, self.view.window.frame.size.height);
 
-  // this makes sure titleLable gets correct width to be ready for later's height estimate for the
+  // this makes sure titleLabel gets correct width to be ready for later's height estimate for the
   // text & button column
   [self.messageCardView layoutIfNeeded];
 
@@ -403,7 +403,7 @@ struct TitleBodyButtonHeightInfo {
     self.cardLeadingMarginInLandscapeMode.constant = self.view.window.frame.size.width / 5;
   }
 
-  // this makes sure titleLable gets correct width to be ready for later's height estimate for the
+  // this makes sure titleLabel gets correct width to be ready for later's height estimate for the
   // text & button column
   [self.messageCardView layoutIfNeeded];
 

+ 1 - 1
FirebaseInAppMessaging/Sources/DefaultUI/README.md

@@ -1,5 +1,5 @@
 FirebaseInAppMessagingDisplay is the default UI implementation from Firebase for
-rendering In-App Messaging messges to end users.
+rendering In-App Messaging messages to end users.
 
 Apps can also provide custom UI implementation to replace it. Check out our guides
 for details.